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