stubLabel property

String get stubLabel

Constructs the string stub for the label, if one is provided and non-empty.

Implementation

String get stubLabel => switch (label.isEmpty) {
  true => '',
  false => 'label=${quote(label)}',
};