Command constructor

Command({
  1. RaceStartCommand? start,
  2. LaneSetDisabledCommand? disable,
  3. LaneSetFallCommand? fall,
  4. RaceResetCommand? reset,
  5. RebootCommand? reboot,
  6. SayAtYourMarksCommand? sayAtYourMarks,
  7. MuteFalseStartSoundCommand? muteFalseStartSound,
})

Implementation

factory Command({
  RaceStartCommand? start,
  LaneSetDisabledCommand? disable,
  LaneSetFallCommand? fall,
  RaceResetCommand? reset,
  RebootCommand? reboot,
  SayAtYourMarksCommand? sayAtYourMarks,
  MuteFalseStartSoundCommand? muteFalseStartSound,
}) {
  final $result = create();
  if (start != null) {
    $result.start = start;
  }
  if (disable != null) {
    $result.disable = disable;
  }
  if (fall != null) {
    $result.fall = fall;
  }
  if (reset != null) {
    $result.reset = reset;
  }
  if (reboot != null) {
    $result.reboot = reboot;
  }
  if (sayAtYourMarks != null) {
    $result.sayAtYourMarks = sayAtYourMarks;
  }
  if (muteFalseStartSound != null) {
    $result.muteFalseStartSound = muteFalseStartSound;
  }
  return $result;
}