CurrentTime class
Provider para gestionar el tiempo de resolución actual en la aplicación.
Esta clase se encarga de manejar el tiempo actual de resolución, gestionar las penalizaciones como "+2" y "DNF", y proporcionar métodos para actualizar y eliminar el tiempo en la base de datos. Notifica a los listeners cada vez que el estado cambia.
- Inheritance
-
- Object
- ChangeNotifier
- CurrentTime
Constructors
Properties
- dateAsc ↔ bool?
-
Indica si el usuario ha seleccionado la ordenación por fecha ascendente o descendentemente
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isComment ↔ bool
-
Indica si el usuario ha introducido un comentario.
getter/setter pair
- isDnfChoose ↔ bool
-
Indica si se ha seleccionado la penalización "DNF".
getter/setter pair
- isPlusTwoChoose ↔ bool
-
Indica si se ha seleccionado la penalización "+2".
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchComment ↔ String?
-
Guarda el comentario que ha introducido el usuario en la búsqueda
getter/setter pair
- searchTime ↔ String?
-
Guarda el tiempo que ha introducido el usuario en la búsqueda
getter/setter pair
- timeAsc ↔ bool?
-
Indica si el usuario ha seleccionado la ordenación por fecha ascendente o descendentemente
getter/setter pair
- timeTraining → TimeTraining?
-
Obtiene el tiempo de resolución actual.
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
deleteTime(
BuildContext context) → Future< void> - Elimina el tiempo actual de la base de datos.
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
getFormattedTime(
) → String - Devuelve el tiempo formateado.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resetTime(
) → void - Resetea el tiempo actual a "0.00"
-
setDateAsc(
bool? isDateAsc) → void - Establecer si el usuario ha seleccionado la ordenación por fecha ascendente o descendentemente
-
setPenalty(
String penalty, bool isEnabled) → Future< void> - Establece una penalización sobre el tiempo actual.
-
setResetTimeTraining(
) → void - Establece el tiempo actual null y notifica a los listeners.
-
setSearchComment(
String comment) → void - Establece el comentario buscado y notifica a los listeners
-
setSearchTime(
String time) → void - Establecer el tiempo buscado y notifica a los listeners
-
setTimeAsc(
bool? isTimeAsc) → void - Establecer si el usuario ha seleccionado la ordenación por tiempo ascendente o descendentemente
-
setTimeTraining(
TimeTraining timeTraining) → void - Establece el tiempo actual y notifica a los listeners.
-
toString(
) → String -
A string representation of this object.
override
-
updateCurrentTime(
BuildContext context) → void - Actualiza el tiempo actual si se ha aplicado una penalización.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited