count method

Future<int> count()

Counts the number of results.

Implementation

Future<int> count() async {
  String path = 'classes/$className';
  Map<String, dynamic> params = _buildParams();
  params['limit'] = 0;
  params['count'] = 1;
  Map result = await LeanCloud._httpClient.get(path, queryParams: params);
  return result['count'];
}