Channel class

Annotations
  • @freezed

Constructors

Channel({required String id, required List<UserPresence> presences, required UserPresence self, required String roomName, required String groupId, required String userIdOne, required String userIdTwo})
const
factory
Channel.fromDto(Channel dto)
factory

Properties

copyWith → $ChannelCopyWith<Channel>
no setterinherited
groupId String
The ID of the group, or an empty string if this message was not sent through a group channel.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the channel.
no setterinherited
presences List<UserPresence>
The users currently in the channel.
no setterinherited
roomName String
The name of the chat room, or an empty string if this message was not sent through a chat room.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
self UserPresence
A reference to the current user's presence in the channel.
no setterinherited
userIdOne String
The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
no setterinherited
userIdTwo String
The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited