getCountBySession method

Future<int> getCountBySession(
  1. 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:

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
}