overlay method

NikuButton overlay(
  1. Color base
)

Apply color to splash (ripple effect)

Equivalent to

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

Implementation

NikuButton overlay(Color base) {
  this._overlayColor.updateAll(base);

  return this;
}