copyWith method
Supergroup
copyWith({
- int? id,
- String? username,
- int? date,
- ChatMemberStatus? status,
- int? memberCount,
- bool? hasLinkedChat,
- bool? hasLocation,
- bool? signMessages,
- bool? isSlowModeEnabled,
- bool? isChannel,
- bool? isBroadcastGroup,
- bool? isVerified,
- String? restrictionReason,
- bool? isScam,
- bool? isFake,
- dynamic extra,
- int? clientId,
Implementation
Supergroup copyWith({
int? id,
String? username,
int? date,
ChatMemberStatus? status,
int? memberCount,
bool? hasLinkedChat,
bool? hasLocation,
bool? signMessages,
bool? isSlowModeEnabled,
bool? isChannel,
bool? isBroadcastGroup,
bool? isVerified,
String? restrictionReason,
bool? isScam,
bool? isFake,
dynamic extra,
int? clientId,
}) => Supergroup(
id: id ?? this.id,
username: username ?? this.username,
date: date ?? this.date,
status: status ?? this.status,
memberCount: memberCount ?? this.memberCount,
hasLinkedChat: hasLinkedChat ?? this.hasLinkedChat,
hasLocation: hasLocation ?? this.hasLocation,
signMessages: signMessages ?? this.signMessages,
isSlowModeEnabled: isSlowModeEnabled ?? this.isSlowModeEnabled,
isChannel: isChannel ?? this.isChannel,
isBroadcastGroup: isBroadcastGroup ?? this.isBroadcastGroup,
isVerified: isVerified ?? this.isVerified,
restrictionReason: restrictionReason ?? this.restrictionReason,
isScam: isScam ?? this.isScam,
isFake: isFake ?? this.isFake,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);