copyWith method

Supergroup copyWith({
  1. int? id,
  2. Usernames? usernames,
  3. int? date,
  4. ChatMemberStatus? status,
  5. int? memberCount,
  6. int? boostLevel,
  7. bool? hasAutomaticTranslation,
  8. bool? hasLinkedChat,
  9. bool? hasLocation,
  10. bool? signMessages,
  11. bool? showMessageSender,
  12. bool? joinToSendMessages,
  13. bool? joinByRequest,
  14. bool? isSlowModeEnabled,
  15. bool? isChannel,
  16. bool? isBroadcastGroup,
  17. bool? isForum,
  18. bool? isDirectMessagesGroup,
  19. bool? isAdministeredDirectMessagesGroup,
  20. VerificationStatus? verificationStatus,
  21. bool? hasDirectMessagesGroup,
  22. bool? hasForumTabs,
  23. bool? hasForumSidebar,
  24. RestrictionInfo? restrictionInfo,
  25. int? paidMessageStarCount,
  26. ActiveStoryState? activeStoryState,
})

Implementation

Supergroup copyWith({
  int? id,
  Usernames? usernames,
  int? date,
  ChatMemberStatus? status,
  int? memberCount,
  int? boostLevel,
  bool? hasAutomaticTranslation,
  bool? hasLinkedChat,
  bool? hasLocation,
  bool? signMessages,
  bool? showMessageSender,
  bool? joinToSendMessages,
  bool? joinByRequest,
  bool? isSlowModeEnabled,
  bool? isChannel,
  bool? isBroadcastGroup,
  bool? isForum,
  bool? isDirectMessagesGroup,
  bool? isAdministeredDirectMessagesGroup,
  VerificationStatus? verificationStatus,
  bool? hasDirectMessagesGroup,
  bool? hasForumTabs,
  bool? hasForumSidebar,
  RestrictionInfo? restrictionInfo,
  int? paidMessageStarCount,
  ActiveStoryState? activeStoryState,
}) =>
    Supergroup(
      id: id ?? this.id,
      usernames: usernames ?? this.usernames,
      date: date ?? this.date,
      status: status ?? this.status,
      memberCount: memberCount ?? this.memberCount,
      boostLevel: boostLevel ?? this.boostLevel,
      hasAutomaticTranslation:
          hasAutomaticTranslation ?? this.hasAutomaticTranslation,
      hasLinkedChat: hasLinkedChat ?? this.hasLinkedChat,
      hasLocation: hasLocation ?? this.hasLocation,
      signMessages: signMessages ?? this.signMessages,
      showMessageSender: showMessageSender ?? this.showMessageSender,
      joinToSendMessages: joinToSendMessages ?? this.joinToSendMessages,
      joinByRequest: joinByRequest ?? this.joinByRequest,
      isSlowModeEnabled: isSlowModeEnabled ?? this.isSlowModeEnabled,
      isChannel: isChannel ?? this.isChannel,
      isBroadcastGroup: isBroadcastGroup ?? this.isBroadcastGroup,
      isForum: isForum ?? this.isForum,
      isDirectMessagesGroup:
          isDirectMessagesGroup ?? this.isDirectMessagesGroup,
      isAdministeredDirectMessagesGroup: isAdministeredDirectMessagesGroup ??
          this.isAdministeredDirectMessagesGroup,
      verificationStatus: verificationStatus ?? this.verificationStatus,
      hasDirectMessagesGroup:
          hasDirectMessagesGroup ?? this.hasDirectMessagesGroup,
      hasForumTabs: hasForumTabs ?? this.hasForumTabs,
      hasForumSidebar: hasForumSidebar ?? this.hasForumSidebar,
      restrictionInfo: restrictionInfo ?? this.restrictionInfo,
      paidMessageStarCount: paidMessageStarCount ?? this.paidMessageStarCount,
      activeStoryState: activeStoryState ?? this.activeStoryState,
    );