ChatFolderInfo class final

Contains basic information about a chat folder

Inheritance

Constructors

ChatFolderInfo({required int id, required String title, required ChatFolderIcon icon, required int colorId, required bool isShareable, required bool hasMyInviteLinks, dynamic extra, int? clientId})
Contains basic information about a chat folder
const
ChatFolderInfo.fromJson(Map<String, dynamic> json)
Parses a ChatFolderInfo from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
colorId → int
The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is didabled
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
True, if the chat folder has invite links created by the current user
final
icon → ChatFolderIcon
The chosen or default icon for the chat folder
final
id → int
Unique chat folder identifier
final
isShareable → bool
True, if at least one link has been created for the folder
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
The title of the folder; 1-12 characters without line feeds
final

Methods

copyWith({int? id, String? title, ChatFolderIcon? icon, int? colorId, bool? isShareable, bool? hasMyInviteLinks, dynamic extra, int? clientId}) → ChatFolderInfo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.