copyWith method

AndroidNotificationDetails copyWith({
  1. String? icon,
  2. String? channelId,
  3. String? channelName,
  4. String? channelDescription,
  5. bool? channelShowBadge,
  6. Importance? importance,
  7. Priority? priority,
  8. bool? playSound,
  9. AndroidNotificationSound? sound,
  10. bool? enableVibration,
  11. bool? enableLights,
  12. Int64List? vibrationPattern,
  13. StyleInformation? styleInformation,
  14. String? groupKey,
  15. bool? setAsGroupSummary,
  16. GroupAlertBehavior? groupAlertBehavior,
  17. bool? autoCancel,
  18. bool? ongoing,
  19. Color? color,
  20. AndroidBitmap<Object>? largeIcon,
  21. bool? onlyAlertOnce,
  22. bool? showWhen,
  23. int? when,
  24. bool? usesChronometer,
  25. bool? showProgress,
  26. int? maxProgress,
  27. int? progress,
  28. bool? indeterminate,
  29. Color? ledColor,
  30. int? ledOnMs,
  31. int? ledOffMs,
  32. String? ticker,
  33. AndroidNotificationChannelAction? channelAction,
  34. NotificationVisibility? visibility,
  35. int? timeoutAfter,
  36. String? category,
  37. bool? fullScreenIntent,
  38. String? shortcutId,
  39. Int32List? additionalFlags,
  40. String? subText,
  41. String? tag,
  42. bool? colorized,
  43. 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,
    );