copyWith method
JSNotificationOptions
copyWith(
{ - List<JSNotificationAction>? actions,
- int? badge,
- String? body,
- Map<String, dynamic>? data,
- JSNotificationDirection? dir,
- String? icon,
- String? image,
- String? lang,
- bool? renotify,
- bool? requireInteraction,
- bool? silent,
- String? tag,
- int? timestamp,
- VibratePattern? vibrate,
})
Implementation
JSNotificationOptions copyWith({
List<JSNotificationAction>? actions,
int? badge,
String? body,
Map<String, dynamic>? data,
JSNotificationDirection? dir,
String? icon,
String? image,
String? lang,
bool? renotify,
bool? requireInteraction,
bool? silent,
String? tag,
int? timestamp,
VibratePattern? vibrate,
}) {
return JSNotificationOptions(
actions: actions ?? this.actions,
badge: badge ?? this.badge,
body: body ?? this.body,
data: data ?? this.data,
dir: dir ?? this.dir,
icon: icon ?? this.icon,
image: image ?? this.image,
lang: lang ?? this.lang,
renotify: renotify ?? this.renotify,
requireInteraction: requireInteraction ?? this.requireInteraction,
silent: silent ?? this.silent,
tag: tag ?? this.tag,
timestamp: timestamp ?? this.timestamp,
vibrate: vibrate ?? this.vibrate,
);
}