copyWith method

JSNotificationOptions copyWith({
  1. List<JSNotificationAction>? actions,
  2. int? badge,
  3. String? body,
  4. Map<String, dynamic>? data,
  5. JSNotificationDirection? dir,
  6. String? icon,
  7. String? image,
  8. String? lang,
  9. bool? renotify,
  10. bool? requireInteraction,
  11. bool? silent,
  12. String? tag,
  13. int? timestamp,
  14. 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,
  );
}