copyWith method

BotInfo copyWith({
  1. String? shortDescription,
  2. String? description,
  3. Photo? photo,
  4. Animation? animation,
  5. BotMenuButton? menuButton,
  6. List<BotCommand>? commands,
  7. ChatAdministratorRights? defaultGroupAdministratorRights,
  8. ChatAdministratorRights? defaultChannelAdministratorRights,
  9. InternalLinkType? editCommandsLink,
  10. InternalLinkType? editDescriptionLink,
  11. InternalLinkType? editDescriptionMediaLink,
  12. InternalLinkType? editSettingsLink,
})

Implementation

BotInfo copyWith({
  String? shortDescription,
  String? description,
  Photo? photo,
  Animation? animation,
  BotMenuButton? menuButton,
  List<BotCommand>? commands,
  ChatAdministratorRights? defaultGroupAdministratorRights,
  ChatAdministratorRights? defaultChannelAdministratorRights,
  InternalLinkType? editCommandsLink,
  InternalLinkType? editDescriptionLink,
  InternalLinkType? editDescriptionMediaLink,
  InternalLinkType? editSettingsLink,
}) =>
    BotInfo(
      shortDescription: shortDescription ?? this.shortDescription,
      description: description ?? this.description,
      photo: photo ?? this.photo,
      animation: animation ?? this.animation,
      menuButton: menuButton ?? this.menuButton,
      commands: commands ?? this.commands,
      defaultGroupAdministratorRights: defaultGroupAdministratorRights ??
          this.defaultGroupAdministratorRights,
      defaultChannelAdministratorRights: defaultChannelAdministratorRights ??
          this.defaultChannelAdministratorRights,
      editCommandsLink: editCommandsLink ?? this.editCommandsLink,
      editDescriptionLink: editDescriptionLink ?? this.editDescriptionLink,
      editDescriptionMediaLink:
          editDescriptionMediaLink ?? this.editDescriptionMediaLink,
      editSettingsLink: editSettingsLink ?? this.editSettingsLink,
    );