update method

Future<void> update(
  1. String id,
  2. String creatorId,
  3. String creatorName,
  4. String creatorImage,
  5. String startTime,
  6. int rounds,
  7. int duration,
  8. int increment,
  9. bool finished,
  10. bool hasStarted
)

Implementation

Future<void> update(
    String id,
    String creatorId,
    String creatorName,
    String creatorImage,
    String startTime,
    int rounds,
    int duration,
    int increment,
    bool finished,
    bool hasStarted) async {
  this.id = id;
  this.creatorId = creatorId;
  this.creatorName = creatorName;
  this.creatorImage = creatorImage;
  creatorElo = TournamentUserData.elo;
  this.startTime = convertirFecha(startTime);
  this.rounds = rounds;
  this.duration = duration ~/ 60;
  this.increment = increment;
  this.finished = finished;
  this.hasStarted = hasStarted;
}