copyWith method
SupergroupFullInfo
copyWith({
- ChatPhoto? photo,
- String? description,
- int? memberCount,
- int? administratorCount,
- int? restrictedCount,
- int? bannedCount,
- int? linkedChatId,
- int? slowModeDelay,
- double? slowModeDelayExpiresIn,
- bool? canGetMembers,
- bool? canSetUsername,
- bool? canSetStickerSet,
- bool? canSetLocation,
- bool? canGetStatistics,
- bool? isAllHistoryAvailable,
- int? stickerSetId,
- ChatLocation? location,
- ChatInviteLink? inviteLink,
- List<
BotCommands> ? botCommands, - int? upgradedFromBasicGroupId,
- int? upgradedFromMaxMessageId,
- dynamic extra,
- int? clientId,
Implementation
SupergroupFullInfo copyWith({
ChatPhoto? photo,
String? description,
int? memberCount,
int? administratorCount,
int? restrictedCount,
int? bannedCount,
int? linkedChatId,
int? slowModeDelay,
double? slowModeDelayExpiresIn,
bool? canGetMembers,
bool? canSetUsername,
bool? canSetStickerSet,
bool? canSetLocation,
bool? canGetStatistics,
bool? isAllHistoryAvailable,
int? stickerSetId,
ChatLocation? location,
ChatInviteLink? inviteLink,
List<BotCommands>? botCommands,
int? upgradedFromBasicGroupId,
int? upgradedFromMaxMessageId,
dynamic extra,
int? clientId,
}) => SupergroupFullInfo(
photo: photo ?? this.photo,
description: description ?? this.description,
memberCount: memberCount ?? this.memberCount,
administratorCount: administratorCount ?? this.administratorCount,
restrictedCount: restrictedCount ?? this.restrictedCount,
bannedCount: bannedCount ?? this.bannedCount,
linkedChatId: linkedChatId ?? this.linkedChatId,
slowModeDelay: slowModeDelay ?? this.slowModeDelay,
slowModeDelayExpiresIn: slowModeDelayExpiresIn ?? this.slowModeDelayExpiresIn,
canGetMembers: canGetMembers ?? this.canGetMembers,
canSetUsername: canSetUsername ?? this.canSetUsername,
canSetStickerSet: canSetStickerSet ?? this.canSetStickerSet,
canSetLocation: canSetLocation ?? this.canSetLocation,
canGetStatistics: canGetStatistics ?? this.canGetStatistics,
isAllHistoryAvailable: isAllHistoryAvailable ?? this.isAllHistoryAvailable,
stickerSetId: stickerSetId ?? this.stickerSetId,
location: location ?? this.location,
inviteLink: inviteLink ?? this.inviteLink,
botCommands: botCommands ?? this.botCommands,
upgradedFromBasicGroupId: upgradedFromBasicGroupId ?? this.upgradedFromBasicGroupId,
upgradedFromMaxMessageId: upgradedFromMaxMessageId ?? this.upgradedFromMaxMessageId,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);