getLastReceivedStatistics method
Returns the last received Statistics
instance.
Implementation
Future<Statistics> getLastReceivedStatistics() async {
try {
return await _methodChannel
.invokeMethod('getLastReceivedStatistics')
.then((event) => eventToStatistics(event)!);
} on PlatformException catch (e, stack) {
print("Plugin getLastReceivedStatistics error: ${e.message}");
return Future.error("getLastReceivedStatistics failed.", stack);
}
}