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}');
  }
}