copyWith method

NotificationSettings copyWith({
  1. bool? enabled,
  2. bool? showInForeground,
  3. bool? playSound,
  4. bool? showBadge,
  5. Set<String>? enabledTypes,
  6. Map<String, dynamic>? extensions,
})

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