copyWith method

NotificationGroup copyWith({
  1. int? id,
  2. NotificationGroupType? type,
  3. int? chatId,
  4. int? totalCount,
  5. List<Notification>? notifications,
})

Implementation

NotificationGroup copyWith({
  int? id,
  NotificationGroupType? type,
  int? chatId,
  int? totalCount,
  List<Notification>? notifications,
}) => NotificationGroup(
  id: id ?? this.id,
  type: type ?? this.type,
  chatId: chatId ?? this.chatId,
  totalCount: totalCount ?? this.totalCount,
  notifications: notifications ?? this.notifications,
);