getLastStats method

Future<Map<String, dynamic>> getLastStats()

Returns the last statistics frame

Implementation

Future<Map<String, dynamic>> getLastStats() async {
  final response = await kuzzle
      .query(KuzzleRequest(controller: name, action: 'getLastStats'));

  return response.result as Map<String, dynamic>;
}