copyWith method
Implementation
NotificationSettings copyWith({
bool? enabled,
bool? showInForeground,
bool? playSound,
bool? showBadge,
Set<String>? enabledTypes,
Map<String, dynamic>? extensions,
}) {
return NotificationSettings(
enabled: enabled ?? this.enabled,
showInForeground: showInForeground ?? this.showInForeground,
playSound: playSound ?? this.playSound,
showBadge: showBadge ?? this.showBadge,
enabledTypes: enabledTypes ?? this.enabledTypes,
extensions: extensions ?? this.extensions,
);
}