copyWith method
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,
);
}