copyWith method
ChatNotificationSettings
copyWith(
{ - bool? useDefaultMuteFor,
- int? muteFor,
- bool? useDefaultSound,
- String? sound,
- bool? useDefaultShowPreview,
- bool? showPreview,
- bool? useDefaultDisablePinnedMessageNotifications,
- bool? disablePinnedMessageNotifications,
- bool? useDefaultDisableMentionNotifications,
- bool? disableMentionNotifications,
})
Implementation
ChatNotificationSettings copyWith({
bool? useDefaultMuteFor,
int? muteFor,
bool? useDefaultSound,
String? sound,
bool? useDefaultShowPreview,
bool? showPreview,
bool? useDefaultDisablePinnedMessageNotifications,
bool? disablePinnedMessageNotifications,
bool? useDefaultDisableMentionNotifications,
bool? disableMentionNotifications,
}) => ChatNotificationSettings(
useDefaultMuteFor: useDefaultMuteFor ?? this.useDefaultMuteFor,
muteFor: muteFor ?? this.muteFor,
useDefaultSound: useDefaultSound ?? this.useDefaultSound,
sound: sound ?? this.sound,
useDefaultShowPreview: useDefaultShowPreview ?? this.useDefaultShowPreview,
showPreview: showPreview ?? this.showPreview,
useDefaultDisablePinnedMessageNotifications: useDefaultDisablePinnedMessageNotifications ?? this.useDefaultDisablePinnedMessageNotifications,
disablePinnedMessageNotifications: disablePinnedMessageNotifications ?? this.disablePinnedMessageNotifications,
useDefaultDisableMentionNotifications: useDefaultDisableMentionNotifications ?? this.useDefaultDisableMentionNotifications,
disableMentionNotifications: disableMentionNotifications ?? this.disableMentionNotifications,
);