baseLabel property

String get baseLabel

label with any generic suffix stripped: Radio<String> → Radio.

Implementation

String get baseLabel {
  final l = label;
  final lt = l.indexOf('<');
  return lt < 0 ? l : l.substring(0, lt);
}