setLogEnabled method

Future<bool> setLogEnabled(
  1. bool enabled
)

是否开启日志

Implementation

Future<bool> setLogEnabled(bool enabled) async {
  if (!_supportPlatform) return false;
  final bool? state =
      await _channel.invokeMethod<bool?>('setLogEnabled', enabled);
  return state ?? false;
}