copyWith method

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