enableStatistics method Null safety

Future<void> enableStatistics()

Enables statistics events.

Implementation

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