Command constructor
Command({
- RaceStartCommand? start,
- LaneSetDisabledCommand? disable,
- LaneSetFallCommand? fall,
- RaceResetCommand? reset,
- RebootCommand? reboot,
- SayAtYourMarksCommand? sayAtYourMarks,
- 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;
}