setLogCallback static method

Future<void> setLogCallback({
  1. required dynamic callback(
    1. LogLevel level,
    2. String message
    ),
})

Implementation

static Future<void> setLogCallback({
  required Function(LogLevel level, String message) callback,
}) async {
  _logCallback = callback;
  final result = await _channel.invokeMethod('setLogCallback');
  ExceptionHandler.checkException(result);
}