copyWith method

  1. @override
UpdateChatFolders copyWith({
  1. List<ChatFolderInfo>? chatFolders,
  2. int? mainChatListPosition,
  3. bool? areTagsEnabled,
  4. dynamic extra,
  5. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
UpdateChatFolders copyWith({
  List<ChatFolderInfo>? chatFolders,
  int? mainChatListPosition,
  bool? areTagsEnabled,
  dynamic extra,
  int? clientId,
}) =>
    UpdateChatFolders(
      chatFolders: chatFolders ?? this.chatFolders,
      mainChatListPosition: mainChatListPosition ?? this.mainChatListPosition,
      areTagsEnabled: areTagsEnabled ?? this.areTagsEnabled,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );