copyWith method
BasicGroupFullInfo
copyWith({
- ChatPhoto? photo()?,
- String? description,
- int? creatorUserId,
- List<
ChatMember> ? members, - bool? canHideMembers,
- bool? canToggleAggressiveAntiSpam,
- ChatInviteLink? inviteLink()?,
- List<
BotCommands> ? botCommands, - 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
BasicGroupFullInfo copyWith({
ChatPhoto? Function()? photo,
String? description,
int? creatorUserId,
List<ChatMember>? members,
bool? canHideMembers,
bool? canToggleAggressiveAntiSpam,
ChatInviteLink? Function()? inviteLink,
List<BotCommands>? botCommands,
dynamic extra,
int? clientId,
}) =>
BasicGroupFullInfo(
photo: photo != null ? photo() : this.photo,
description: description ?? this.description,
creatorUserId: creatorUserId ?? this.creatorUserId,
members: members ?? this.members,
canHideMembers: canHideMembers ?? this.canHideMembers,
canToggleAggressiveAntiSpam:
canToggleAggressiveAntiSpam ?? this.canToggleAggressiveAntiSpam,
inviteLink: inviteLink != null ? inviteLink() : this.inviteLink,
botCommands: botCommands ?? this.botCommands,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);