labelFor method

  1. @override
String labelFor(
  1. int choice
)
override

Returns the user-facing label for choice.

Implementation

@override
String labelFor(int choice) {
  final definition = _definitions.knobs[choice];
  if (definition is! NamedAttentionFormatKnob) {
    throw StateError('Attention requires named format definitions.');
  }
  return '$choice: ${definition.name}';
}