clear method

  1. @override
Future<void> clear(
  1. List<Collection> collections
)
override

Clear function used to clear all documents under the given collections.

Implementation

@override
clear(collections) async {
  await _sendMessage(
    ClearMessageRequest(
      paths: collections.map((collection) => collection.path).toList(),
    ),
  );
}