copyWith method

  1. @override
KeyboardButtonTypeRequestChat copyWith({
  1. int? id,
  2. bool? chatIsChannel,
  3. bool? restrictChatIsForum,
  4. bool? chatIsForum,
  5. bool? restrictChatHasUsername,
  6. bool? chatHasUsername,
  7. bool? chatIsCreated,
  8. ChatAdministratorRights? userAdministratorRights,
  9. ChatAdministratorRights? botAdministratorRights,
  10. bool? botIsMember,
})
override

Implementation

@override
KeyboardButtonTypeRequestChat copyWith({
  int? id,
  bool? chatIsChannel,
  bool? restrictChatIsForum,
  bool? chatIsForum,
  bool? restrictChatHasUsername,
  bool? chatHasUsername,
  bool? chatIsCreated,
  ChatAdministratorRights? userAdministratorRights,
  ChatAdministratorRights? 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 ?? this.userAdministratorRights,
      botAdministratorRights:
          botAdministratorRights ?? this.botAdministratorRights,
      botIsMember: botIsMember ?? this.botIsMember,
    );