setColor method

NikuRaisedButton 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

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

Implementation

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

  return this;
}