copyWith method
Supergroup
copyWith({
- int? id,
- Usernames? usernames,
- int? date,
- ChatMemberStatus? status,
- int? memberCount,
- int? boostLevel,
- bool? hasAutomaticTranslation,
- bool? hasLinkedChat,
- bool? hasLocation,
- bool? signMessages,
- bool? showMessageSender,
- bool? joinToSendMessages,
- bool? joinByRequest,
- bool? isSlowModeEnabled,
- bool? isChannel,
- bool? isBroadcastGroup,
- bool? isForum,
- bool? isDirectMessagesGroup,
- bool? isAdministeredDirectMessagesGroup,
- VerificationStatus? verificationStatus,
- bool? hasDirectMessagesGroup,
- bool? hasForumTabs,
- RestrictionInfo? restrictionInfo,
- int? paidMessageStarCount,
- ActiveStoryState? activeStoryState,
Implementation
Supergroup copyWith({
int? id,
Usernames? usernames,
int? date,
ChatMemberStatus? status,
int? memberCount,
int? boostLevel,
bool? hasAutomaticTranslation,
bool? hasLinkedChat,
bool? hasLocation,
bool? signMessages,
bool? showMessageSender,
bool? joinToSendMessages,
bool? joinByRequest,
bool? isSlowModeEnabled,
bool? isChannel,
bool? isBroadcastGroup,
bool? isForum,
bool? isDirectMessagesGroup,
bool? isAdministeredDirectMessagesGroup,
VerificationStatus? verificationStatus,
bool? hasDirectMessagesGroup,
bool? hasForumTabs,
RestrictionInfo? restrictionInfo,
int? paidMessageStarCount,
ActiveStoryState? activeStoryState,
}) => Supergroup(
id: id ?? this.id,
usernames: usernames ?? this.usernames,
date: date ?? this.date,
status: status ?? this.status,
memberCount: memberCount ?? this.memberCount,
boostLevel: boostLevel ?? this.boostLevel,
hasAutomaticTranslation:
hasAutomaticTranslation ?? this.hasAutomaticTranslation,
hasLinkedChat: hasLinkedChat ?? this.hasLinkedChat,
hasLocation: hasLocation ?? this.hasLocation,
signMessages: signMessages ?? this.signMessages,
showMessageSender: showMessageSender ?? this.showMessageSender,
joinToSendMessages: joinToSendMessages ?? this.joinToSendMessages,
joinByRequest: joinByRequest ?? this.joinByRequest,
isSlowModeEnabled: isSlowModeEnabled ?? this.isSlowModeEnabled,
isChannel: isChannel ?? this.isChannel,
isBroadcastGroup: isBroadcastGroup ?? this.isBroadcastGroup,
isForum: isForum ?? this.isForum,
isDirectMessagesGroup: isDirectMessagesGroup ?? this.isDirectMessagesGroup,
isAdministeredDirectMessagesGroup:
isAdministeredDirectMessagesGroup ??
this.isAdministeredDirectMessagesGroup,
verificationStatus: verificationStatus ?? this.verificationStatus,
hasDirectMessagesGroup:
hasDirectMessagesGroup ?? this.hasDirectMessagesGroup,
hasForumTabs: hasForumTabs ?? this.hasForumTabs,
restrictionInfo: restrictionInfo ?? this.restrictionInfo,
paidMessageStarCount: paidMessageStarCount ?? this.paidMessageStarCount,
activeStoryState: activeStoryState ?? this.activeStoryState,
);