CurrentStatistics class

Provider para gestionar las estadísticas de tiempos en la aplicación.

Permite actualizar la lista de tiempos y obtener estadísticas como:

  • El mejor tiempo (PB).
  • El peor tiempo.
  • El total de tiempos registrados en una sesión.
  • La media de x tiempos de una sesión.
Inheritance

Constructors

CurrentStatistics()

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timesList List<TimeTraining>
Obtiene la lista de tiempos de la sesión.
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
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
getAo100Value() Future<String>
Obtiene la Average of 100 (Ao100) de los tiempos más recientes.
getAo12Value() Future<String>
Obtiene la Average of 12 (Ao12) de los tiempos más recientes.
getAo50Value() Future<String>
Obtiene la Average of 50 (Ao50) de los tiempos más recientes.
getAo5Value() Future<String>
Obtiene la Average of 5 (Ao5) de los tiempos más recientes.
getAoXValue(int numAvg) Future<String>
Obtiene la media de X tiempos (AoX) de la sesión actual.
getBestAvgValue(int numAvg) Future<String>
Obtiene la mejor media de X tiempos de la sesión actual.
getCountValue() Future<String>
Obtiene la cantidad total de tiempos registrados en la sesión actual.
getPbValue([bool isDnf = false]) Future<String>
Obtiene el mejor tiempo (PB) de la sesión actual.
getWorstAvgValue(int numAvg) Future<String>
Obtiene la peor media de X tiempos de la sesión actual.
getWorstValue([bool isDnf = false]) Future<String>
Obtiene el peor tiempo de la sesión actual.
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
toString() String
A string representation of this object.
inherited
updateStatistics({required List<TimeTraining> timesListUpdate}) → void
Actualiza la lista de tiempos y notifica a los listeners.

Operators

operator ==(Object other) bool
The equality operator.
inherited