text property

String get text

The text label displayed on the button.

Implementation

String get text => _text;
set text (String v)

Sets the text label.

Implementation

set text(String v) {
  if (_text == v) return;
  _text = v;
  _invalidateCache();
  markNeedsLayout();
}