getLastReceivedStatistics method
Returns the last received statistics entry.
Implementation
Future<Statistics?> getLastReceivedStatistics() async =>
this.getStatistics().then((statistics) {
if (statistics.length > 0) {
return statistics[statistics.length - 1];
} else {
return null;
}
});