copyWith method
AndroidNotificationDetails
copyWith({
- String? icon,
- String? channelId,
- String? channelName,
- String? channelDescription,
- bool? channelShowBadge,
- Importance? importance,
- Priority? priority,
- bool? playSound,
- AndroidNotificationSound? sound,
- bool? enableVibration,
- bool? enableLights,
- Int64List? vibrationPattern,
- StyleInformation? styleInformation,
- String? groupKey,
- bool? setAsGroupSummary,
- GroupAlertBehavior? groupAlertBehavior,
- bool? autoCancel,
- bool? ongoing,
- Color? color,
- AndroidBitmap<
Object> ? largeIcon, - bool? onlyAlertOnce,
- bool? showWhen,
- int? when,
- bool? usesChronometer,
- bool? showProgress,
- int? maxProgress,
- int? progress,
- bool? indeterminate,
- Color? ledColor,
- int? ledOnMs,
- int? ledOffMs,
- String? ticker,
- AndroidNotificationChannelAction? channelAction,
- NotificationVisibility? visibility,
- int? timeoutAfter,
- String? category,
- bool? fullScreenIntent,
- String? shortcutId,
- Int32List? additionalFlags,
- String? subText,
- String? tag,
- bool? colorized,
- int? number,
Implementation
AndroidNotificationDetails copyWith({
String? icon,
String? channelId,
String? channelName,
String? channelDescription,
bool? channelShowBadge,
Importance? importance,
Priority? priority,
bool? playSound,
AndroidNotificationSound? sound,
bool? enableVibration,
bool? enableLights,
Int64List? vibrationPattern,
StyleInformation? styleInformation,
String? groupKey,
bool? setAsGroupSummary,
GroupAlertBehavior? groupAlertBehavior,
bool? autoCancel,
bool? ongoing,
Color? color,
AndroidBitmap<Object>? largeIcon,
bool? onlyAlertOnce,
bool? showWhen,
int? when,
bool? usesChronometer,
bool? showProgress,
int? maxProgress,
int? progress,
bool? indeterminate,
Color? ledColor,
int? ledOnMs,
int? ledOffMs,
String? ticker,
AndroidNotificationChannelAction? channelAction,
NotificationVisibility? visibility,
int? timeoutAfter,
String? category,
bool? fullScreenIntent,
String? shortcutId,
Int32List? additionalFlags,
String? subText,
String? tag,
bool? colorized,
int? number,
}) =>
AndroidNotificationDetails(
channelId ?? this.channelId,
channelName ?? this.channelName,
channelDescription: channelDescription ?? this.channelDescription,
icon: icon ?? this.icon,
channelShowBadge: channelShowBadge ?? this.channelShowBadge,
importance: importance ?? this.importance,
priority: priority ?? this.priority,
playSound: playSound ?? this.playSound,
sound: sound ?? this.sound,
enableVibration: enableVibration ?? this.enableVibration,
enableLights: enableLights ?? this.enableLights,
vibrationPattern: vibrationPattern ?? this.vibrationPattern,
styleInformation: styleInformation ?? this.styleInformation,
groupKey: groupKey ?? this.groupKey,
setAsGroupSummary: setAsGroupSummary ?? this.setAsGroupSummary,
groupAlertBehavior: groupAlertBehavior ?? this.groupAlertBehavior,
autoCancel: autoCancel ?? this.autoCancel,
ongoing: ongoing ?? this.ongoing,
color: color ?? this.color,
largeIcon: largeIcon ?? this.largeIcon,
onlyAlertOnce: onlyAlertOnce ?? this.onlyAlertOnce,
showWhen: showWhen ?? this.showWhen,
when: when ?? this.when,
usesChronometer: usesChronometer ?? this.usesChronometer,
showProgress: showProgress ?? this.showProgress,
maxProgress: maxProgress ?? this.maxProgress,
progress: progress ?? this.progress,
indeterminate: indeterminate ?? this.indeterminate,
ledColor: ledColor ?? this.ledColor,
ledOnMs: ledOnMs ?? this.ledOnMs,
ledOffMs: ledOffMs ?? this.ledOffMs,
ticker: ticker ?? this.ticker,
channelAction: channelAction ?? this.channelAction,
visibility: visibility ?? this.visibility,
timeoutAfter: timeoutAfter ?? this.timeoutAfter,
category: category ?? this.category,
fullScreenIntent: fullScreenIntent ?? this.fullScreenIntent,
shortcutId: shortcutId ?? this.shortcutId,
additionalFlags: additionalFlags ?? this.additionalFlags,
subText: subText ?? this.subText,
tag: tag ?? this.tag,
colorized: colorized ?? this.colorized,
number: number ?? this.number,
);