copyWith method
CommunityFullInfo
copyWith({
- ChatPhoto? photo,
- List<
CommunityChat> ? chats, - int? administratorCount,
- int? bannedCount,
- int? addChatRequestCount,
- ChatNotificationSettings? notificationSettings,
- dynamic extra,
- int? clientId,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
CommunityFullInfo copyWith({
ChatPhoto? photo,
List<CommunityChat>? chats,
int? administratorCount,
int? bannedCount,
int? addChatRequestCount,
ChatNotificationSettings? notificationSettings,
dynamic extra,
int? clientId,
}) => CommunityFullInfo(
photo: photo ?? this.photo,
chats: chats ?? this.chats,
administratorCount: administratorCount ?? this.administratorCount,
bannedCount: bannedCount ?? this.bannedCount,
addChatRequestCount: addChatRequestCount ?? this.addChatRequestCount,
notificationSettings: notificationSettings ?? this.notificationSettings,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);