MenuItems class
Clase que agrupa los ítems de menú para las penalizaciones.
Esta clase contiene una lista de ítems predefinidos:
- "No Penalty".
- "DNF".
- "+2".
Maneja la lógica de actualización del icono de penalización en función
del ítem seleccionado. Además, puede construir un
Widgetpara cada item del menú y un método para manejar la selección de penalizaciones.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
buildItem(
MenuItem item) → Widget -
Widgetque representa un ítem de menú visualmente con su ícono y texto. -
onChanged(
BuildContext context, MenuItem item, TimeTraining timetraining) → void -
Método que se ejecuta cuando el usuario selecciona un ítem del menú.
Actualiza el icono de la penalización en la clase
AlertUtilen función del ítem elegido.