ChatFilter class

Inheritance

Constructors

ChatFilter({String title, String iconName, List<int> pinnedChatIds, List<int> includedChatIds, List<int> excludedChatIds, bool excludeMuted, bool excludeRead, bool excludeArchived, bool includeContacts, bool includeNonContacts, bool includeBots, bool includeGroups, bool includeChannels})
Represents a filter of user chats
ChatFilter.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

excludeArchived bool
excludeArchived True, if archived chats need to be excluded
read / write
excludedChatIds List<int>
excludedChatIds The chat identifiers of always excluded chats in the filtered chat list
read / write
excludeMuted bool
excludeMuted True, if muted chats need to be excluded
read / write
excludeRead bool
excludeRead True, if read chats need to be excluded
read / write
extra ↔ dynamic
callback sign
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
iconName String
iconName The icon name for short filter representation. If non-empty, must be one of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups", "Private", "Custom", "Setup", "Cat", "Crown", "Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport", "Study", "Trade", "Travel", "Work".. If empty, use getChatFilterDefaultIconName to get default icon name for the filter
read / write
includeBots bool
includeBots True, if bots need to be included
read / write
includeChannels bool
includeChannels True, if channels need to be included
read / write
includeContacts bool
includeContacts True, if contacts need to be included
read / write
includedChatIds List<int>
includedChatIds The chat identifiers of always included chats in the filtered chat list
read / write
includeGroups bool
includeGroups True, if basic groups and supergroups need to be included
read / write
includeNonContacts bool
includeNonContacts True, if non-contact users need to be included
read / write
pinnedChatIds List<int>
pinnedChatIds The chat identifiers of pinned chats in the filtered chat list
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
title String
title The title of the filter; 1-12 characters without line feeds
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() 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
'chatFilter'