TimeTraining constructor

TimeTraining({
  1. int? idTimeTraining,
  2. required int? idSession,
  3. required String scramble,
  4. required double timeInSeconds,
  5. String? comments,
  6. String? penalty,
  7. String? registrationDate,
})

Constructor para inicializar un tiempo de entrenamiento.

Implementation

TimeTraining(
    {this.idTimeTraining,
    required this.idSession,
    required this.scramble,
    required this.timeInSeconds,
    this.comments,
    String? penalty,
    String? registrationDate})
    : registrationDate = registrationDate ?? DateTime.now().toString(),
      penalty = penalty ?? "none";