copyWith method

AndroidNotification copyWith({
  1. String? sound,
  2. String? clickAction,
  3. String? color,
  4. String? tag,
  5. String? bodyLocKey,
  6. List<String>? bodyLocArgs,
  7. String? titleLocKey,
  8. List<String>? titleLocArgs,
  9. String? channelId,
  10. bool? sticky,
  11. DateTime? eventTime,
  12. bool? localOnly,
  13. bool? defaultSound,
  14. bool? defaultVibrateTimings,
  15. bool? defaultLightSettings,
  16. List<String>? vibrateTimings,
  17. NotificationVisibility? visibility,
  18. String? notificationPriority,
  19. int? notificationCount,
  20. 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,
    );