copyWith method
AlarmSettings
copyWith({
- int? id,
- DateTime? dateTime,
- String? assetAudioPath,
- NotificationSettings? notificationSettings,
- bool? loopAudio,
- bool? vibrate,
- double? volume,
- bool? volumeEnforced,
- double? fadeDuration,
- String? notificationTitle,
- String? notificationBody,
- bool? warningNotificationOnKill,
- bool? androidFullScreenIntent,
Creates a copy of AlarmSettings
but with the given fields replaced with
the new values.
Implementation
AlarmSettings copyWith({
int? id,
DateTime? dateTime,
String? assetAudioPath,
NotificationSettings? notificationSettings,
bool? loopAudio,
bool? vibrate,
double? volume,
bool? volumeEnforced,
double? fadeDuration,
String? notificationTitle,
String? notificationBody,
bool? warningNotificationOnKill,
bool? androidFullScreenIntent,
}) {
return AlarmSettings(
id: id ?? this.id,
dateTime: dateTime ?? this.dateTime,
assetAudioPath: assetAudioPath ?? this.assetAudioPath,
notificationSettings: notificationSettings ?? this.notificationSettings,
loopAudio: loopAudio ?? this.loopAudio,
vibrate: vibrate ?? this.vibrate,
volume: volume ?? this.volume,
volumeEnforced: volumeEnforced ?? this.volumeEnforced,
fadeDuration: fadeDuration ?? this.fadeDuration,
warningNotificationOnKill:
warningNotificationOnKill ?? this.warningNotificationOnKill,
androidFullScreenIntent:
androidFullScreenIntent ?? this.androidFullScreenIntent,
);
}