Supergroup constructor
const
Supergroup({
- required int id,
- required String username,
- required int date,
- required ChatMemberStatus status,
- required int memberCount,
- required bool hasLinkedChat,
- required bool hasLocation,
- required bool signMessages,
- required bool isSlowModeEnabled,
- required bool isChannel,
- required bool isBroadcastGroup,
- required bool isVerified,
- required String restrictionReason,
- required bool isScam,
- required bool isFake,
- dynamic extra,
- 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,
required this.username,
required this.date,
required this.status,
required this.memberCount,
required this.hasLinkedChat,
required this.hasLocation,
required this.signMessages,
required this.isSlowModeEnabled,
required this.isChannel,
required this.isBroadcastGroup,
required this.isVerified,
required this.restrictionReason,
required this.isScam,
required this.isFake,
this.extra,
this.clientId,
});