GroupChannel constructor
GroupChannel(- {required String channelUrl,
- BaseMessage? lastMessage,
- bool isSuper = false,
- bool isBroadcast = false,
- bool isPublic = false,
- bool isDistinct = false,
- bool isDiscoverable = false,
- bool isExclusive = false,
- bool isAccessCodeRequired = false,
- int unreadMessageCount = 0,
- int unreadMentionCount = 0,
- List<Member> members = const [],
- int memberCount = 0,
- int joinedMemberCount = 0,
- GroupChannelPushTriggerOption myPushTriggerOption = GroupChannelPushTriggerOption.defaultValue,
- bool isChatNotification = false,
- MemberState myMemberState = MemberState.none,
- Role myRole = Role.none,
- MuteState myMutedState = MuteState.unmuted,
- CountPreference myCountPreference = CountPreference.all,
- User? creator,
- Member? inviter,
- int invitedAt = 0,
- int joinedAt = 0,
- bool isHidden = false,
- GroupChannelHiddenState hiddenState = GroupChannelHiddenState.unhidden,
- int myLastRead = 0,
- int? messageOffsetTimestamp,
- int messageSurvivalSeconds = -1,
- List<int> pinnedMessageIds = const [],
- BaseMessage? lastPinnedMessage,
- int pinnedMessageUpdatedAt = 0,
- String name = '',
- String coverUrl = '',
- int? createdAt,
- String data = '',
- String customType = '',
- bool isFrozen = false,
- bool isEphemeral = false}
)
Implementation
GroupChannel({
required String channelUrl,
this.lastMessage,
this.isSuper = false,
this.isBroadcast = false,
this.isPublic = false,
this.isDistinct = false,
this.isDiscoverable = false,
this.isExclusive = false,
this.isAccessCodeRequired = false,
this.unreadMessageCount = 0,
this.unreadMentionCount = 0,
this.members = const [],
this.memberCount = 0,
this.joinedMemberCount = 0,
this.myPushTriggerOption = GroupChannelPushTriggerOption.defaultValue,
this.isChatNotification = false,
this.myMemberState = MemberState.none,
this.myRole = Role.none,
this.myMutedState = MuteState.unmuted,
this.myCountPreference = CountPreference.all,
this.creator,
this.inviter,
this.invitedAt = 0,
this.joinedAt = 0,
this.isHidden = false,
this.hiddenState = GroupChannelHiddenState.unhidden,
this.myLastRead = 0,
this.messageOffsetTimestamp,
this.messageSurvivalSeconds = -1,
this.pinnedMessageIds = const [],
this.lastPinnedMessage,
this.pinnedMessageUpdatedAt = 0,
String name = '',
String coverUrl = '',
int? createdAt,
String data = '',
String customType = '',
bool isFrozen = false,
bool isEphemeral = false,
}) : _lastStartTypingTimestamp = 0,
_lastEndTypingTimestamp = 0,
_lastMarkAsReadTimestamp = 0,
super(
channelUrl: channelUrl,
name: name,
coverUrl: coverUrl,
createdAt: createdAt,
data: data,
customType: customType,
isFrozen: isFrozen,
isEphemeral: isEphemeral,
fromCache: false,
dirty: false,
);