ChannelID class

This class is used to represent a channel id. It is a subclass of ID.

Simply pass the channel's username to the constructor to create a channel id.

Inheritance

Constructors

ChannelID(String id)
Creates a new ChannelID object with the passed id which is a string.
const
ChannelID.create(String id)
Creates a new ChannelID object with the passed id which is a string.
factory

Properties

hashCode int
Returns the hash code of the id.
no setterinherited
id String
The ID getter, returns the actual String value
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get() Future<Chat>
Returns the Chat object of the chat.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
Returns the id as a string or an integer.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Equality operator. Returns true if the passed other is an ID and the id of the other is equal to the id of this ID.
inherited