copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
ScopeNotificationSettings copyWith({
int? muteFor,
int? soundId,
bool? showPreview,
bool? useDefaultMuteStories,
bool? muteStories,
int? storySoundId,
bool? showStorySender,
bool? disablePinnedMessageNotifications,
bool? disableMentionNotifications,
dynamic extra,
int? clientId,
}) =>
ScopeNotificationSettings(
muteFor: muteFor ?? this.muteFor,
soundId: soundId ?? this.soundId,
showPreview: showPreview ?? this.showPreview,
useDefaultMuteStories:
useDefaultMuteStories ?? this.useDefaultMuteStories,
muteStories: muteStories ?? this.muteStories,
storySoundId: storySoundId ?? this.storySoundId,
showStorySender: showStorySender ?? this.showStorySender,
disablePinnedMessageNotifications: disablePinnedMessageNotifications ??
this.disablePinnedMessageNotifications,
disableMentionNotifications:
disableMentionNotifications ?? this.disableMentionNotifications,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);