bg method

NikuButton bg(
  1. Color color
)

Apply color to background

Equivalent to

TextButton(
  backgroundColor: MaterialStateProperty.resolveWith<T>((states) {
     return input;
   })
)

Implementation

NikuButton bg(Color color) {
  this._backgroundColor.updateAll(color);

  return this;
}