enableLogWithLevel method
Enables the debug log function and sets the minimum log level.
note This function is specifically used by Android Platforms.
Implementation
Future<void> enableLogWithLevel(String logLevel) async {
if (!(logLevel == "DEBUG" ||
logLevel == "INFO" ||
logLevel == "WARN" ||
logLevel == "ERROR")) {
throw ArgumentError.value(
logLevel, "logLevel", "Possible options [DEBUG, INFO, WARN, ERROR]");
}
await _channel.invokeMethod('enableLogWithLevel', {'logLevel': logLevel});
}