SupergroupID class

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

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

Inheritance

Constructors

SupergroupID(String id)
Creates a new SupergroupID object with the passed id which is a string.
const
SupergroupID.create(String id)
Creates a new SupergroupID 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