getLastReceivedStatistics method

Future<FlutterSoundStatistics?> getLastReceivedStatistics()

Returns the last received Statistics instance.

Implementation

Future<FlutterSoundStatistics?> getLastReceivedStatistics() async {
  try {
    var r = await _methodChannel.invokeMethod('getLastReceivedStatistics');
    return eventToStatistics(r);
  } on PlatformException catch (e, stack) {
    logger.e('Plugin getLastReceivedStatistics error: ${e.message}');
    return Future.error('getLastReceivedStatistics failed.', stack);
  }
}