copyWith method

ChatNotificationSettings copyWith({
  1. bool? useDefaultMuteFor,
  2. int? muteFor,
  3. bool? useDefaultSound,
  4. String? sound,
  5. bool? useDefaultShowPreview,
  6. bool? showPreview,
  7. bool? useDefaultDisablePinnedMessageNotifications,
  8. bool? disablePinnedMessageNotifications,
  9. bool? useDefaultDisableMentionNotifications,
  10. bool? disableMentionNotifications,
})

Implementation

ChatNotificationSettings copyWith({
  bool? useDefaultMuteFor,
  int? muteFor,
  bool? useDefaultSound,
  String? sound,
  bool? useDefaultShowPreview,
  bool? showPreview,
  bool? useDefaultDisablePinnedMessageNotifications,
  bool? disablePinnedMessageNotifications,
  bool? useDefaultDisableMentionNotifications,
  bool? disableMentionNotifications,
}) => ChatNotificationSettings(
  useDefaultMuteFor: useDefaultMuteFor ?? this.useDefaultMuteFor,
  muteFor: muteFor ?? this.muteFor,
  useDefaultSound: useDefaultSound ?? this.useDefaultSound,
  sound: sound ?? this.sound,
  useDefaultShowPreview: useDefaultShowPreview ?? this.useDefaultShowPreview,
  showPreview: showPreview ?? this.showPreview,
  useDefaultDisablePinnedMessageNotifications: useDefaultDisablePinnedMessageNotifications ?? this.useDefaultDisablePinnedMessageNotifications,
  disablePinnedMessageNotifications: disablePinnedMessageNotifications ?? this.disablePinnedMessageNotifications,
  useDefaultDisableMentionNotifications: useDefaultDisableMentionNotifications ?? this.useDefaultDisableMentionNotifications,
  disableMentionNotifications: disableMentionNotifications ?? this.disableMentionNotifications,
);