copyWith method

ClockSettings copyWith({
  1. ThemeMode? themeMode,
  2. TimeFormat? timeFormat,
  3. bool? isFlipped,
  4. bool? isWeatherEnabled,
})

Implementation

ClockSettings copyWith({
  ThemeMode? themeMode,
  TimeFormat? timeFormat,
  bool? isFlipped,
  bool? isWeatherEnabled,
}) {
  return ClockSettings(
    themeMode: themeMode ?? this.themeMode,
    timeFormat: timeFormat ?? this.timeFormat,
    isFlipped: isFlipped ?? this.isFlipped,
    isWeatherEnabled: isWeatherEnabled ?? this.isWeatherEnabled,
  );
}