ChatMember class abstract
This object contains information about one member of a chat.
- Implemented types
- Implementers
Constructors
- ChatMember({required ChatMemberStatus status, required User user})
-
Creates a new ChatMember object.
const
Properties
- from → User
-
Information about the user
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → ChatMemberStatus
-
The member's status
final
- user → User
-
Information about the user
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts a ChatMember to a Map for JSON encoding.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → ChatMember - Creates a new ChatMember object from a JSON object. This method decides which ChatMember subclass to use based on the status field.