ChannelState constructor

ChannelState({
  1. ChannelModel? channel,
  2. List<Message> messages = const [],
  3. List<Member> members = const [],
  4. List<Message> pinnedMessages = _emptyPinnedMessages,
  5. int? watcherCount,
  6. List<User> watchers = const [],
  7. List<Read> read = const [],
})

Constructor used for json serialization

Implementation

ChannelState({
  this.channel,
  this.messages = const [],
  this.members = const [],
  this.pinnedMessages = _emptyPinnedMessages,
  this.watcherCount,
  this.watchers = const [],
  this.read = const [],
});