label property

String? get label

An optional text label displayed beside the toggle.

Implementation

String? get label => _label;
set label (String? v)

Sets the label and invalidates the paint cache.

Implementation

set label(String? v) {
  _label = v;
  _invalidateCache();
}