call method

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

Calls a function stored on this context's globalThis.

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

Implementation

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