copyWith method
AndroidNotification
copyWith({
- String? sound,
- String? clickAction,
- String? color,
- String? tag,
- String? bodyLocKey,
- List<
String> ? bodyLocArgs, - String? titleLocKey,
- List<
String> ? titleLocArgs, - String? channelId,
- bool? sticky,
- DateTime? eventTime,
- bool? localOnly,
- bool? defaultSound,
- bool? defaultVibrateTimings,
- bool? defaultLightSettings,
- List<
String> ? vibrateTimings, - NotificationVisibility? visibility,
- String? notificationPriority,
- int? notificationCount,
- LightSettings? lightSettings,
Implementation
AndroidNotification copyWith({
String? sound,
String? clickAction,
String? color,
String? tag,
String? bodyLocKey,
List<String>? bodyLocArgs,
String? titleLocKey,
List<String>? titleLocArgs,
String? channelId,
bool? sticky,
DateTime? eventTime,
bool? localOnly,
bool? defaultSound,
bool? defaultVibrateTimings,
bool? defaultLightSettings,
List<String>? vibrateTimings,
NotificationVisibility? visibility,
String? notificationPriority,
int? notificationCount,
LightSettings? lightSettings,
}) =>
AndroidNotification(
sound: sound ?? this.sound,
clickAction: clickAction ?? this.clickAction,
color: color ?? this.color,
tag: tag ?? this.tag,
bodyLocKey: bodyLocKey ?? this.bodyLocKey,
bodyLocArgs: bodyLocArgs ?? this.bodyLocArgs,
titleLocKey: titleLocKey ?? this.titleLocKey,
titleLocArgs: titleLocArgs ?? this.titleLocArgs,
channelId: channelId ?? this.channelId,
sticky: sticky ?? this.sticky,
eventTime: eventTime ?? this.eventTime,
localOnly: localOnly ?? this.localOnly,
defaultSound: defaultSound ?? this.defaultSound,
defaultVibrateTimings:
defaultVibrateTimings ?? this.defaultVibrateTimings,
defaultLightSettings: defaultLightSettings ?? this.defaultLightSettings,
vibrateTimings: vibrateTimings ?? this.vibrateTimings,
visibility: visibility ?? this.visibility,
notificationPriority: notificationPriority ?? this.notificationPriority,
notificationCount: notificationCount ?? this.notificationCount,
lightSettings: lightSettings ?? this.lightSettings,
);