copyIndex method

Future<AlgoliaTask> copyIndex({
  1. required String destination,
  2. List<CopyScope>? scopes,
})

CopyIndex

Copy the index referred to by this AlgoliaIndexReference.

scopes represent the scopes of the index to copy. When absent, a full copy is performed. When present, only the selected scopes are copied. When you use the scopes parameter, you will no longer be copying records (objects) but only the specified scopes.

Implementation

Future<AlgoliaTask> copyIndex(
    {required String destination, List<CopyScope>? scopes}) async {
  return await _copyOrMoveIndex(
      destination: destination, copy: true, scopes: scopes);
}