setColor method

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

Apply all color property using named property

Equivalent to

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

Implementation

NikuOutlineButton setColor(
    {Color? color,
    Color? focus,
    Color? hover,
    Color? highlight,
    Color? splash}) {
  this._color = color;
  this._focusColor = focus;
  this._hoverColor = hover;
  this._highlightColor = highlight;
  this._splashColor = highlight;

  return this;
}