Supergroup constructor

const Supergroup({
  1. required int id,
  2. Usernames? usernames,
  3. required int date,
  4. required ChatMemberStatus status,
  5. required int memberCount,
  6. required bool hasLinkedChat,
  7. required bool hasLocation,
  8. required bool signMessages,
  9. required bool joinToSendMessages,
  10. required bool joinByRequest,
  11. required bool isSlowModeEnabled,
  12. required bool isChannel,
  13. required bool isBroadcastGroup,
  14. required bool isForum,
  15. required bool isVerified,
  16. required String restrictionReason,
  17. required bool isScam,
  18. required bool isFake,
  19. dynamic extra,
  20. int? clientId,
})

Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup:. only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos.. Unlike supergroups, channels can have an unlimited number of subscribers

Implementation

const Supergroup({
  required this.id,
  this.usernames,
  required this.date,
  required this.status,
  required this.memberCount,
  required this.hasLinkedChat,
  required this.hasLocation,
  required this.signMessages,
  required this.joinToSendMessages,
  required this.joinByRequest,
  required this.isSlowModeEnabled,
  required this.isChannel,
  required this.isBroadcastGroup,
  required this.isForum,
  required this.isVerified,
  required this.restrictionReason,
  required this.isScam,
  required this.isFake,
  this.extra,
  this.clientId,
});