setColor method

NikuIconButton setColor({
  1. Color? color,
  2. Color? disabled,
  3. Color? focus,
  4. Color? hover,
  5. Color? highlight,
  6. Color? splash,
})

Apply all color property using named property

Equivalent to

IconButton(
  color: color
  disabled: disabled,
  focus: focus,
  hover: hover,
  highlight: highlight,
  splash: splash
)

Implementation

NikuIconButton setColor({
  Color? color,
  Color? disabled,
  Color? focus,
  Color? hover,
  Color? highlight,
  Color? splash,
}) {
  _color = color;
  _disabledColor = disabled;
  _focusColor = focus;
  _hoverColor = hover;
  _highlightColor = highlight;
  _splashColor = highlight;

  return this;
}