copyWith method

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

Implementation

ScopeNotificationSettings copyWith({
  int? muteFor,
  int? soundId,
  bool? showPreview,
  bool? useDefaultMuteStories,
  bool? muteStories,
  int? storySoundId,
  bool? showStoryPoster,
  bool? disablePinnedMessageNotifications,
  bool? disableMentionNotifications,
}) =>
    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,
      showStoryPoster: showStoryPoster ?? this.showStoryPoster,
      disablePinnedMessageNotifications: disablePinnedMessageNotifications ??
          this.disablePinnedMessageNotifications,
      disableMentionNotifications:
          disableMentionNotifications ?? this.disableMentionNotifications,
    );