createScope method

WasmScope createScope(
  1. Scope<Object?> scope, [
  2. WasmScopeOptions options = const WasmScopeOptions()
])

Creates a scope wrapper owned by this ABI registry.

Implementation

WasmScope createScope(
  Scope<Object?> scope, [
  WasmScopeOptions options = const WasmScopeOptions(),
]) {
  return WasmScope(
    unsafe.callMethod(
      raw,
      'createScope',
      scope.raw,
      options.toJsValue(),
    ) as JSObject,
  );
}