copyWith method
ChatNotificationSettings
copyWith({
- bool? useDefaultMuteFor,
- int? muteFor,
- bool? useDefaultSound,
- int? soundId,
- bool? useDefaultShowPreview,
- bool? showPreview,
- bool? useDefaultMuteStories,
- bool? muteStories,
- bool? useDefaultStorySound,
- int? storySoundId,
- bool? useDefaultShowStorySender,
- bool? showStorySender,
- bool? useDefaultDisablePinnedMessageNotifications,
- bool? disablePinnedMessageNotifications,
- bool? useDefaultDisableMentionNotifications,
- bool? disableMentionNotifications,
Implementation
ChatNotificationSettings copyWith({
bool? useDefaultMuteFor,
int? muteFor,
bool? useDefaultSound,
int? soundId,
bool? useDefaultShowPreview,
bool? showPreview,
bool? useDefaultMuteStories,
bool? muteStories,
bool? useDefaultStorySound,
int? storySoundId,
bool? useDefaultShowStorySender,
bool? showStorySender,
bool? useDefaultDisablePinnedMessageNotifications,
bool? disablePinnedMessageNotifications,
bool? useDefaultDisableMentionNotifications,
bool? disableMentionNotifications,
}) =>
ChatNotificationSettings(
useDefaultMuteFor: useDefaultMuteFor ?? this.useDefaultMuteFor,
muteFor: muteFor ?? this.muteFor,
useDefaultSound: useDefaultSound ?? this.useDefaultSound,
soundId: soundId ?? this.soundId,
useDefaultShowPreview:
useDefaultShowPreview ?? this.useDefaultShowPreview,
showPreview: showPreview ?? this.showPreview,
useDefaultMuteStories:
useDefaultMuteStories ?? this.useDefaultMuteStories,
muteStories: muteStories ?? this.muteStories,
useDefaultStorySound: useDefaultStorySound ?? this.useDefaultStorySound,
storySoundId: storySoundId ?? this.storySoundId,
useDefaultShowStorySender:
useDefaultShowStorySender ?? this.useDefaultShowStorySender,
showStorySender: showStorySender ?? this.showStorySender,
useDefaultDisablePinnedMessageNotifications:
useDefaultDisablePinnedMessageNotifications ??
this.useDefaultDisablePinnedMessageNotifications,
disablePinnedMessageNotifications: disablePinnedMessageNotifications ??
this.disablePinnedMessageNotifications,
useDefaultDisableMentionNotifications:
useDefaultDisableMentionNotifications ??
this.useDefaultDisableMentionNotifications,
disableMentionNotifications:
disableMentionNotifications ?? this.disableMentionNotifications,
);