callRaw method

Future<String> callRaw(
  1. String method,
  2. List<Object?> args, {
  3. Duration? timeout,
})

Calls a global function and returns the raw QuickJS bridge string.

method 仅按 globalThis[method] 单个属性解析;app.run 不会被拆分为 嵌套路径。args 支持结构化值编解码器可转换的 Dart 值。

Implementation

Future<String> callRaw(
  String method,
  List<Object?> args, {
  Duration? timeout,
}) {
  _ensureOpen();
  return _engine.callRaw(method, args, timeout: timeout);
}