copyWith method

SupergroupFullInfo copyWith({
  1. ChatPhoto? photo()?,
  2. int? communityId,
  3. String? description,
  4. int? memberCount,
  5. int? administratorCount,
  6. int? restrictedCount,
  7. int? bannedCount,
  8. int? linkedChatId,
  9. int? directMessagesChatId,
  10. int? slowModeDelay,
  11. double? slowModeDelayExpiresIn,
  12. bool? canEnablePaidMessages,
  13. bool? canEnablePaidReaction,
  14. bool? canGetMembers,
  15. bool? hasHiddenMembers,
  16. bool? canHideMembers,
  17. bool? canSetStickerSet,
  18. bool? canSetLocation,
  19. bool? canGetStatistics,
  20. bool? canGetRevenueStatistics,
  21. bool? canGetStarRevenueStatistics,
  22. bool? canSendGift,
  23. bool? canToggleAggressiveAntiSpam,
  24. bool? isAllHistoryAvailable,
  25. bool? canHaveSponsoredMessages,
  26. bool? hasAggressiveAntiSpamEnabled,
  27. bool? hasPaidMediaAllowed,
  28. bool? hasPinnedStories,
  29. int? giftCount,
  30. int? myBoostCount,
  31. int? unrestrictBoostCount,
  32. int? outgoingPaidMessageStarCount,
  33. int? stickerSetId,
  34. int? customEmojiStickerSetId,
  35. ChatLocation? location()?,
  36. ChatInviteLink? inviteLink()?,
  37. int? guardBotUserId,
  38. List<BotCommands>? botCommands,
  39. BotVerification? botVerification()?,
  40. ProfileTab? mainProfileTab()?,
  41. ProfileShareTheme? shareTheme()?,
  42. int? upgradedFromBasicGroupId,
  43. int? upgradedFromMaxMessageId,
  44. dynamic extra,
  45. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

SupergroupFullInfo copyWith({
  ChatPhoto? Function()? photo,
  int? communityId,
  String? description,
  int? memberCount,
  int? administratorCount,
  int? restrictedCount,
  int? bannedCount,
  int? linkedChatId,
  int? directMessagesChatId,
  int? slowModeDelay,
  double? slowModeDelayExpiresIn,
  bool? canEnablePaidMessages,
  bool? canEnablePaidReaction,
  bool? canGetMembers,
  bool? hasHiddenMembers,
  bool? canHideMembers,
  bool? canSetStickerSet,
  bool? canSetLocation,
  bool? canGetStatistics,
  bool? canGetRevenueStatistics,
  bool? canGetStarRevenueStatistics,
  bool? canSendGift,
  bool? canToggleAggressiveAntiSpam,
  bool? isAllHistoryAvailable,
  bool? canHaveSponsoredMessages,
  bool? hasAggressiveAntiSpamEnabled,
  bool? hasPaidMediaAllowed,
  bool? hasPinnedStories,
  int? giftCount,
  int? myBoostCount,
  int? unrestrictBoostCount,
  int? outgoingPaidMessageStarCount,
  int? stickerSetId,
  int? customEmojiStickerSetId,
  ChatLocation? Function()? location,
  ChatInviteLink? Function()? inviteLink,
  int? guardBotUserId,
  List<BotCommands>? botCommands,
  BotVerification? Function()? botVerification,
  ProfileTab? Function()? mainProfileTab,
  ProfileShareTheme? Function()? shareTheme,
  int? upgradedFromBasicGroupId,
  int? upgradedFromMaxMessageId,
  dynamic extra,
  int? clientId,
}) => SupergroupFullInfo(
  photo: photo != null ? photo() : this.photo,
  communityId: communityId ?? this.communityId,
  description: description ?? this.description,
  memberCount: memberCount ?? this.memberCount,
  administratorCount: administratorCount ?? this.administratorCount,
  restrictedCount: restrictedCount ?? this.restrictedCount,
  bannedCount: bannedCount ?? this.bannedCount,
  linkedChatId: linkedChatId ?? this.linkedChatId,
  directMessagesChatId: directMessagesChatId ?? this.directMessagesChatId,
  slowModeDelay: slowModeDelay ?? this.slowModeDelay,
  slowModeDelayExpiresIn:
      slowModeDelayExpiresIn ?? this.slowModeDelayExpiresIn,
  canEnablePaidMessages: canEnablePaidMessages ?? this.canEnablePaidMessages,
  canEnablePaidReaction: canEnablePaidReaction ?? this.canEnablePaidReaction,
  canGetMembers: canGetMembers ?? this.canGetMembers,
  hasHiddenMembers: hasHiddenMembers ?? this.hasHiddenMembers,
  canHideMembers: canHideMembers ?? this.canHideMembers,
  canSetStickerSet: canSetStickerSet ?? this.canSetStickerSet,
  canSetLocation: canSetLocation ?? this.canSetLocation,
  canGetStatistics: canGetStatistics ?? this.canGetStatistics,
  canGetRevenueStatistics:
      canGetRevenueStatistics ?? this.canGetRevenueStatistics,
  canGetStarRevenueStatistics:
      canGetStarRevenueStatistics ?? this.canGetStarRevenueStatistics,
  canSendGift: canSendGift ?? this.canSendGift,
  canToggleAggressiveAntiSpam:
      canToggleAggressiveAntiSpam ?? this.canToggleAggressiveAntiSpam,
  isAllHistoryAvailable: isAllHistoryAvailable ?? this.isAllHistoryAvailable,
  canHaveSponsoredMessages:
      canHaveSponsoredMessages ?? this.canHaveSponsoredMessages,
  hasAggressiveAntiSpamEnabled:
      hasAggressiveAntiSpamEnabled ?? this.hasAggressiveAntiSpamEnabled,
  hasPaidMediaAllowed: hasPaidMediaAllowed ?? this.hasPaidMediaAllowed,
  hasPinnedStories: hasPinnedStories ?? this.hasPinnedStories,
  giftCount: giftCount ?? this.giftCount,
  myBoostCount: myBoostCount ?? this.myBoostCount,
  unrestrictBoostCount: unrestrictBoostCount ?? this.unrestrictBoostCount,
  outgoingPaidMessageStarCount:
      outgoingPaidMessageStarCount ?? this.outgoingPaidMessageStarCount,
  stickerSetId: stickerSetId ?? this.stickerSetId,
  customEmojiStickerSetId:
      customEmojiStickerSetId ?? this.customEmojiStickerSetId,
  location: location != null ? location() : this.location,
  inviteLink: inviteLink != null ? inviteLink() : this.inviteLink,
  guardBotUserId: guardBotUserId ?? this.guardBotUserId,
  botCommands: botCommands ?? this.botCommands,
  botVerification: botVerification != null
      ? botVerification()
      : this.botVerification,
  mainProfileTab: mainProfileTab != null
      ? mainProfileTab()
      : this.mainProfileTab,
  shareTheme: shareTheme != null ? shareTheme() : this.shareTheme,
  upgradedFromBasicGroupId:
      upgradedFromBasicGroupId ?? this.upgradedFromBasicGroupId,
  upgradedFromMaxMessageId:
      upgradedFromMaxMessageId ?? this.upgradedFromMaxMessageId,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);