copyWith method

UpdateNotificationGroup copyWith({
  1. int? notificationGroupId,
  2. NotificationGroupType? type,
  3. int? chatId,
  4. int? notificationSettingsChatId,
  5. int? notificationSoundId,
  6. int? totalCount,
  7. List<Notification>? addedNotifications,
  8. List<int>? removedNotificationIds,
})

Implementation

UpdateNotificationGroup copyWith({
  int? notificationGroupId,
  NotificationGroupType? type,
  int? chatId,
  int? notificationSettingsChatId,
  int? notificationSoundId,
  int? totalCount,
  List<Notification>? addedNotifications,
  List<int>? removedNotificationIds,
}) => UpdateNotificationGroup(
  notificationGroupId: notificationGroupId ?? this.notificationGroupId,
  type: type ?? this.type,
  chatId: chatId ?? this.chatId,
  notificationSettingsChatId:
      notificationSettingsChatId ?? this.notificationSettingsChatId,
  notificationSoundId: notificationSoundId ?? this.notificationSoundId,
  totalCount: totalCount ?? this.totalCount,
  addedNotifications: addedNotifications ?? this.addedNotifications,
  removedNotificationIds:
      removedNotificationIds ?? this.removedNotificationIds,
);