callSync method

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

Calls a global function immediately without waiting for a Promise.

Implementation

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