currentChoiceLabel property

String get currentChoiceLabel

Implementation

String get currentChoiceLabel {
  if (isBooleanOption) return currentBoolValue ? 'On' : 'Off';
  for (final choice in options) {
    if (choice.value == currentValue) return choice.label;
  }
  return currentValue;
}