ToggleChatIsPinned class

Inheritance

Constructors

ToggleChatIsPinned({required ChatList chatList, required int chatId, required bool isPinned})
Changes the pinned state of a chat. There can be up to GetOption("pinned_chat_count_max")/GetOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/arhive chat list
const

Properties

chatId int
chatId Chat identifier
final
chatList ChatList
chatList Chat list in which to change the pinned state of the chat
final
hashCode int
The hash code for this object.
no setterinherited
isPinned bool
isPinned True, if the chat is pinned
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({ChatList? chatList, int? chatId, bool? isPinned}) ToggleChatIsPinned
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String