copyWith method
ChatFolder
copyWith({
- String? title,
- ChatFolderIcon? icon,
- 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
ChatFolder copyWith({
String? title,
ChatFolderIcon? icon,
bool? isShareable,
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,
}) =>
ChatFolder(
title: title ?? this.title,
icon: icon ?? this.icon,
isShareable: isShareable ?? this.isShareable,
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,
);