copyWith method

ScopeNotificationSettings copyWith({
  1. int? muteFor,
  2. int? soundId,
  3. bool? showPreview,
  4. bool? useDefaultMuteStories,
  5. bool? muteStories,
  6. int? storySoundId,
  7. bool? showStorySender,
  8. bool? disablePinnedMessageNotifications,
  9. bool? disableMentionNotifications,
  10. dynamic extra,
  11. int? clientId,
})

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