copyWith method

SupergroupFullInfo copyWith({
  1. ChatPhoto? photo,
  2. String? description,
  3. int? memberCount,
  4. int? administratorCount,
  5. int? restrictedCount,
  6. int? bannedCount,
  7. int? linkedChatId,
  8. int? slowModeDelay,
  9. double? slowModeDelayExpiresIn,
  10. bool? canGetMembers,
  11. bool? hasHiddenMembers,
  12. bool? canHideMembers,
  13. bool? canSetStickerSet,
  14. bool? canSetLocation,
  15. bool? canGetStatistics,
  16. bool? canToggleAggressiveAntiSpam,
  17. bool? isAllHistoryAvailable,
  18. bool? hasAggressiveAntiSpamEnabled,
  19. int? stickerSetId,
  20. ChatLocation? location,
  21. ChatInviteLink? inviteLink,
  22. List<BotCommands>? botCommands,
  23. int? upgradedFromBasicGroupId,
  24. int? upgradedFromMaxMessageId,
  25. dynamic extra,
  26. int? clientId,
})

Implementation

SupergroupFullInfo copyWith({
  ChatPhoto? photo,
  String? description,
  int? memberCount,
  int? administratorCount,
  int? restrictedCount,
  int? bannedCount,
  int? linkedChatId,
  int? slowModeDelay,
  double? slowModeDelayExpiresIn,
  bool? canGetMembers,
  bool? hasHiddenMembers,
  bool? canHideMembers,
  bool? canSetStickerSet,
  bool? canSetLocation,
  bool? canGetStatistics,
  bool? canToggleAggressiveAntiSpam,
  bool? isAllHistoryAvailable,
  bool? hasAggressiveAntiSpamEnabled,
  int? stickerSetId,
  ChatLocation? location,
  ChatInviteLink? inviteLink,
  List<BotCommands>? botCommands,
  int? upgradedFromBasicGroupId,
  int? upgradedFromMaxMessageId,
  dynamic extra,
  int? clientId,
}) =>
    SupergroupFullInfo(
      photo: photo ?? this.photo,
      description: description ?? this.description,
      memberCount: memberCount ?? this.memberCount,
      administratorCount: administratorCount ?? this.administratorCount,
      restrictedCount: restrictedCount ?? this.restrictedCount,
      bannedCount: bannedCount ?? this.bannedCount,
      linkedChatId: linkedChatId ?? this.linkedChatId,
      slowModeDelay: slowModeDelay ?? this.slowModeDelay,
      slowModeDelayExpiresIn:
          slowModeDelayExpiresIn ?? this.slowModeDelayExpiresIn,
      canGetMembers: canGetMembers ?? this.canGetMembers,
      hasHiddenMembers: hasHiddenMembers ?? this.hasHiddenMembers,
      canHideMembers: canHideMembers ?? this.canHideMembers,
      canSetStickerSet: canSetStickerSet ?? this.canSetStickerSet,
      canSetLocation: canSetLocation ?? this.canSetLocation,
      canGetStatistics: canGetStatistics ?? this.canGetStatistics,
      canToggleAggressiveAntiSpam:
          canToggleAggressiveAntiSpam ?? this.canToggleAggressiveAntiSpam,
      isAllHistoryAvailable:
          isAllHistoryAvailable ?? this.isAllHistoryAvailable,
      hasAggressiveAntiSpamEnabled:
          hasAggressiveAntiSpamEnabled ?? this.hasAggressiveAntiSpamEnabled,
      stickerSetId: stickerSetId ?? this.stickerSetId,
      location: location ?? this.location,
      inviteLink: inviteLink ?? this.inviteLink,
      botCommands: botCommands ?? this.botCommands,
      upgradedFromBasicGroupId:
          upgradedFromBasicGroupId ?? this.upgradedFromBasicGroupId,
      upgradedFromMaxMessageId:
          upgradedFromMaxMessageId ?? this.upgradedFromMaxMessageId,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );