copyWith method

ChatNotificationSettings copyWith({
  1. bool? useDefaultMuteFor,
  2. int? muteFor,
  3. bool? useDefaultSound,
  4. int? soundId,
  5. bool? useDefaultShowPreview,
  6. bool? showPreview,
  7. bool? useDefaultMuteStories,
  8. bool? muteStories,
  9. bool? useDefaultStorySound,
  10. int? storySoundId,
  11. bool? useDefaultShowStorySender,
  12. bool? showStorySender,
  13. bool? useDefaultDisablePinnedMessageNotifications,
  14. bool? disablePinnedMessageNotifications,
  15. bool? useDefaultDisableMentionNotifications,
  16. 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,
    );