getCountBySession method
- List<
TimeTraining> timesList
Método para obtener el número de tiempos registrados en una sesión.
Este método devuelve la cantidad de tiempos registrados en la lista de tiempos de la sesión.
Parámetros:
timesList
: Lista de tiempos TimeTraining.
Retorna:
int
: El número de tiempos registrados en la lista.
Implementation
Future<int> getCountBySession(List<TimeTraining> timesList) async {
return timesList.length; // DEVUELVE EL TAMAÑO DE LA LISTA DE TIEMPOS
}