SocketMessage constructor

SocketMessage({
  1. RaceFullState? raceFullState,
  2. Command? command,
  3. Settings? settings,
})

Implementation

factory SocketMessage({
  $0.RaceFullState? raceFullState,
  $1.Command? command,
  $2.Settings? settings,
}) {
  final $result = create();
  if (raceFullState != null) {
    $result.raceFullState = raceFullState;
  }
  if (command != null) {
    $result.command = command;
  }
  if (settings != null) {
    $result.settings = settings;
  }
  return $result;
}