copyWith method
AndroidNotificationOptions
copyWith({
- String? channelId,
- String? channelName,
- String? channelDescription,
- NotificationChannelImportance? channelImportance,
- NotificationPriority? priority,
- bool? enableVibration,
- bool? playSound,
- bool? showWhen,
- bool? showBadge,
- bool? onlyAlertOnce,
- NotificationVisibility? visibility,
Creates a copy of the object replaced with new values.
Implementation
AndroidNotificationOptions copyWith({
String? channelId,
String? channelName,
String? channelDescription,
NotificationChannelImportance? channelImportance,
NotificationPriority? priority,
bool? enableVibration,
bool? playSound,
bool? showWhen,
bool? showBadge,
bool? onlyAlertOnce,
NotificationVisibility? visibility,
}) =>
AndroidNotificationOptions(
channelId: channelId ?? this.channelId,
channelName: channelName ?? this.channelName,
channelDescription: channelDescription ?? this.channelDescription,
channelImportance: channelImportance ?? this.channelImportance,
priority: priority ?? this.priority,
enableVibration: enableVibration ?? this.enableVibration,
playSound: playSound ?? this.playSound,
showWhen: showWhen ?? this.showWhen,
showBadge: showBadge ?? this.showBadge,
onlyAlertOnce: onlyAlertOnce ?? this.onlyAlertOnce,
visibility: visibility ?? this.visibility,
);