copyWith method
KeyboardButtonTypeRequestChat
copyWith({
- int? id,
- bool? chatIsChannel,
- bool? restrictChatIsForum,
- bool? chatIsForum,
- bool? restrictChatHasUsername,
- bool? chatHasUsername,
- bool? chatIsCreated,
- ChatAdministratorRights? userAdministratorRights()?,
- ChatAdministratorRights? botAdministratorRights()?,
- bool? botIsMember,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
KeyboardButtonTypeRequestChat copyWith({
int? id,
bool? chatIsChannel,
bool? restrictChatIsForum,
bool? chatIsForum,
bool? restrictChatHasUsername,
bool? chatHasUsername,
bool? chatIsCreated,
ChatAdministratorRights? Function()? userAdministratorRights,
ChatAdministratorRights? Function()? botAdministratorRights,
bool? botIsMember,
}) =>
KeyboardButtonTypeRequestChat(
id: id ?? this.id,
chatIsChannel: chatIsChannel ?? this.chatIsChannel,
restrictChatIsForum: restrictChatIsForum ?? this.restrictChatIsForum,
chatIsForum: chatIsForum ?? this.chatIsForum,
restrictChatHasUsername:
restrictChatHasUsername ?? this.restrictChatHasUsername,
chatHasUsername: chatHasUsername ?? this.chatHasUsername,
chatIsCreated: chatIsCreated ?? this.chatIsCreated,
userAdministratorRights: userAdministratorRights != null
? userAdministratorRights()
: this.userAdministratorRights,
botAdministratorRights: botAdministratorRights != null
? botAdministratorRights()
: this.botAdministratorRights,
botIsMember: botIsMember ?? this.botIsMember,
);