discontinuedPackage flutter_sound_lite has been discontinued and replaced by flutter_sound.

disableStatistics method

Future<void> disableStatistics()

Disables statistics functionality of the library. Statistics callback will be disabled but the last received statistics data will be still available. Note that statistics functionality is enabled by default.

Implementation

Future<void> disableStatistics() async {
  try {
    await _methodChannel.invokeMethod('disableStatistics');
  } on PlatformException catch (e) {
    logger.e('Plugin disableStatistics error: ${e.message}');
  }
}