setColor method
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;
}