copyWith method

IOSNotificationConfig copyWith({
  1. bool? presentList,
  2. bool? presentAlert,
  3. bool? presentBadge,
  4. bool? presentSound,
  5. bool? presentBanner,
  6. String? sound,
  7. int? badgeNumber,
  8. String? threadIdentifier,
  9. String? categoryIdentifier,
  10. InterruptionLevel? interruptionLevel,
})

Creates a copy of this config with the specified fields replaced.

Implementation

IOSNotificationConfig copyWith({
  bool? presentList,
  bool? presentAlert,
  bool? presentBadge,
  bool? presentSound,
  bool? presentBanner,
  String? sound,
  int? badgeNumber,
  String? threadIdentifier,
  String? categoryIdentifier,
  InterruptionLevel? interruptionLevel,
}) {
  return IOSNotificationConfig(
    presentList: presentList ?? this.presentList,
    presentAlert: presentAlert ?? this.presentAlert,
    presentBadge: presentBadge ?? this.presentBadge,
    presentSound: presentSound ?? this.presentSound,
    presentBanner: presentBanner ?? this.presentBanner,
    sound: sound ?? this.sound,
    badgeNumber: badgeNumber ?? this.badgeNumber,
    threadIdentifier: threadIdentifier ?? this.threadIdentifier,
    categoryIdentifier: categoryIdentifier ?? this.categoryIdentifier,
    interruptionLevel: interruptionLevel ?? this.interruptionLevel,
  );
}