figures method

Future<Map<String, dynamic>?> figures()

Fetch the statistics of a collection

Implementation

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