getLogLevel method

Future<int?> getLogLevel()

Returns log level.

Implementation

Future<int?> getLogLevel() async {
  try {
    var result = await _methodChannel.invokeMethod('getLogLevel');
    return result['level'];
  } on PlatformException catch (e, stack) {
    logger.e('Plugin getLogLevel error: ${e.message}');
    return Future.error('getLogLevel failed.', stack);
  }
}