Settings constructor

Settings({
  1. bool? default_1,
  2. @Deprecated('This field is deprecated.') RaceSettings? race,
  3. SoundSettings? sound,
  4. StopwatchSettings? stopwatchSettings,
  5. SecuritySettings? securitySettings,
})

Implementation

factory Settings({
  $core.bool? default_1,
@$core.Deprecated('This field is deprecated.')
  $0.RaceSettings? race,
  SoundSettings? sound,
  StopwatchSettings? stopwatchSettings,
  SecuritySettings? securitySettings,
}) {
  final $result = create();
  if (default_1 != null) {
    $result.default_1 = default_1;
  }
  if (race != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.race = race;
  }
  if (sound != null) {
    $result.sound = sound;
  }
  if (stopwatchSettings != null) {
    $result.stopwatchSettings = stopwatchSettings;
  }
  if (securitySettings != null) {
    $result.securitySettings = securitySettings;
  }
  return $result;
}