textBackground method

NikuButton textBackground(
  1. Paint foreground
)
  • background - The paint drawn as a background for the text.

Equivalent to

TextStyle(background: input)

Implementation

NikuButton textBackground(Paint foreground) {
  _text_foreground = foreground;

  return this;
}