labelFor method
- 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}';
}