createCollection method

Future<void> createCollection(
  1. String name
)

Creates a new collection

Implementation

Future<void> createCollection(String name) async {
  final response = await _client.post(
    Uri.parse('$baseUrl/collections'),
    headers: _headers,
    body: jsonEncode({'name': name}),
  );

  _handleResponse(response);
}