copyWith method
NotificationGroup
copyWith({
- int? id,
- NotificationGroupType? type,
- int? chatId,
- int? totalCount,
- 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,
);