copyWith method

CommunityFullInfo copyWith({
  1. ChatPhoto? photo,
  2. List<CommunityChat>? chats,
  3. int? administratorCount,
  4. int? bannedCount,
  5. int? addChatRequestCount,
  6. ChatNotificationSettings? notificationSettings,
  7. dynamic extra,
  8. 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,
);