ChatId class

Unique ID of a Chat.

Inheritance
Implemented types

Constructors

ChatId(String val)
const
ChatId.fromJson(String val)
Constructs a ChatId from the provided val.
factory
ChatId.local(UserId id)
Constructs a local ChatId from the id of the User with whom the local Chat is created.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isLocal → bool
Indicates whether this ChatId is a dummy ID.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId → UserId
Returns UserId part of this ChatId if isLocal.
no setter
val → String
Actual value wrapped by this NewType.
finalinherited

Methods

compareTo(ChatId other) → int
Compares this object to another object.
override
isLocalWith(UserId? id) → bool
Indicates whether this ChatId has isLocal indicator and its userId equals the provided id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
Returns a String representing this ChatId.
toString() → String
A string representation of this object.
inherited

Operators

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