getPbValue method

Future<String> getPbValue([
  1. bool isDnf = false
])

Obtiene el mejor tiempo (PB) de la sesión actual.

Llama al método DAO de tiempos getPbTimeBySession(timesList) y retorna el mejor tiempo.

Parámetros:

  • isDnf (opcional): Atributo para saber si ha puesto un DNF al tiempo actual.

Implementation

Future<String> getPbValue([bool isDnf = false]) async {
  return await TimeTrainingDaoSb().getPbTimeBySession(_timesList, isDnf);
}