Chat class

This object represents a chat.

Implementers
Available Extensions

Constructors

Chat({required int id, required ChatType type, String? title, String? username, String? firstName, String? lastName, bool? isForum})
Constructs a Chat object.
const
Chat.fromJson(Map<String, dynamic> json)
Creates a Chat object from JSON.
factory

Properties

firstName String?
First name of the other party in a private chat.
final
hashCode int
The hash code for this object.
no setterinherited
id int
Unique identifier for this chat.
final
isForum bool?
True, if the supergroup chat is a forum (has topics enabled).
final
lastName String?
Last name of the other party in a private chat.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
Title, for supergroups, channels, and group chats.
final
type ChatType
Type of the chat, can be either "private", "group", "supergroup" or "channel".
final
username String?
Username, for private chats, supergroups, and channels if available.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a Chat object to JSON.
toString() String
A string representation of this object.
inherited

Operators

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