drop method
Drop a collection
Implementation
Future<Map<String, dynamic>?> drop() async {
Map<String, dynamic>? res;
try {
var request =
client.prepareRequest('/_api/collection/${name}', methode: 'delete');
res = await client.exec(request);
} catch (e) {
print(e);
}
return res;
}