fg method

NikuButton fg(
  1. Color base
)

Apply color to foreground (ie. Text color)

Equivalent to

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

Implementation

NikuButton fg(Color base) {
  this._foregroundColor.updateAll(base);

  return this;
}