ChatFilter class

Inheritance

Constructors

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

Properties

clientId int?
clientId client identifier
final
excludeArchived bool
excludeArchived True, if archived chats need to be excluded
final
excludedChatIds List<int>
excludedChatIds The chat identifiers of always excluded chats in the filtered chat list
final
excludeMuted bool
excludeMuted True, if muted chats need to be excluded
final
excludeRead bool
excludeRead True, if read chats need to be excluded
final
extra → dynamic
extra callback sign
final
hashCode int
The hash code for this object.
no setterinherited
iconName String
iconName The chosen 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
final
includeBots bool
includeBots True, if bots need to be included
final
includeChannels bool
includeChannels True, if channels need to be included
final
includeContacts bool
includeContacts True, if contacts need to be included
final
includedChatIds List<int>
includedChatIds The chat identifiers of always included chats in the filtered chat list
final
includeGroups bool
includeGroups True, if basic groups and supergroups need to be included
final
includeNonContacts bool
includeNonContacts True, if non-contact users need to be included
final
pinnedChatIds List<int>
pinnedChatIds The chat identifiers of pinned chats in the filtered chat list
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
title The title of the filter; 1-12 characters without line feeds
final

Methods

copyWith({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, dynamic extra, int? clientId}) ChatFilter
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