copyWith method
ChatFilter
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,
Implementation
ChatFilter 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(
title: title ?? this.title,
iconName: iconName ?? this.iconName,
pinnedChatIds: pinnedChatIds ?? this.pinnedChatIds,
includedChatIds: includedChatIds ?? this.includedChatIds,
excludedChatIds: excludedChatIds ?? this.excludedChatIds,
excludeMuted: excludeMuted ?? this.excludeMuted,
excludeRead: excludeRead ?? this.excludeRead,
excludeArchived: excludeArchived ?? this.excludeArchived,
includeContacts: includeContacts ?? this.includeContacts,
includeNonContacts: includeNonContacts ?? this.includeNonContacts,
includeBots: includeBots ?? this.includeBots,
includeGroups: includeGroups ?? this.includeGroups,
includeChannels: includeChannels ?? this.includeChannels,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);