copyWith method

ChatFilter copyWith({
  1. String? title,
  2. String? iconName,
  3. List<int>? pinnedChatIds,
  4. List<int>? includedChatIds,
  5. List<int>? excludedChatIds,
  6. bool? excludeMuted,
  7. bool? excludeRead,
  8. bool? excludeArchived,
  9. bool? includeContacts,
  10. bool? includeNonContacts,
  11. bool? includeBots,
  12. bool? includeGroups,
  13. bool? includeChannels,
  14. dynamic extra,
  15. 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,
);