GroupChannel constructor

GroupChannel({
  1. required String channelUrl,
  2. BaseMessage? lastMessage,
  3. bool isSuper = false,
  4. bool isBroadcast = false,
  5. bool isPublic = false,
  6. bool isDistinct = false,
  7. bool isDiscoverable = false,
  8. bool isExclusive = false,
  9. bool isAccessCodeRequired = false,
  10. int unreadMessageCount = 0,
  11. int unreadMentionCount = 0,
  12. List<Member> members = const [],
  13. int memberCount = 0,
  14. int joinedMemberCount = 0,
  15. GroupChannelPushTriggerOption myPushTriggerOption = GroupChannelPushTriggerOption.defaultValue,
  16. bool isChatNotification = false,
  17. MemberState myMemberState = MemberState.none,
  18. Role myRole = Role.none,
  19. MuteState myMutedState = MuteState.unmuted,
  20. CountPreference myCountPreference = CountPreference.all,
  21. User? creator,
  22. Member? inviter,
  23. int invitedAt = 0,
  24. int joinedAt = 0,
  25. bool isHidden = false,
  26. GroupChannelHiddenState hiddenState = GroupChannelHiddenState.unhidden,
  27. int myLastRead = 0,
  28. int? messageOffsetTimestamp,
  29. int messageSurvivalSeconds = -1,
  30. List<int> pinnedMessageIds = const [],
  31. BaseMessage? lastPinnedMessage,
  32. int pinnedMessageUpdatedAt = 0,
  33. String name = '',
  34. String coverUrl = '',
  35. int? createdAt,
  36. String data = '',
  37. String customType = '',
  38. bool isFrozen = false,
  39. 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,
      super(
        channelUrl: channelUrl,
        name: name,
        coverUrl: coverUrl,
        createdAt: createdAt,
        data: data,
        customType: customType,
        isFrozen: isFrozen,
        isEphemeral: isEphemeral,
        fromCache: false,
        dirty: false,
      );