instantiate property

({Future<WebAssemblyInstantiatedSource> Function(Object bytes, [dynamic importObject]) $1, Future<Instance> Function(Module moduleObject, [dynamic importObject]) $2}) get instantiate

Overload accessor: $1, $2

Implementation

({
  /// The WebAssembly.instantiate() function allows you to compile and instantiate
  /// WebAssembly code.
  ///
  /// This overload takes the WebAssembly binary code, in the form of a typed
  /// array or ArrayBuffer, and performs both compilation and instantiation in one step.
  /// The returned Promise resolves to both a compiled WebAssembly.Module and its first
  /// WebAssembly.Instance.
  ///
  /// [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate)
  /// The WebAssembly.instantiate() function allows you to compile and instantiate
  /// WebAssembly code.
  ///
  /// This overload takes an already-compiled WebAssembly.Module and returns
  /// a Promise that resolves to an Instance of that Module. This overload is useful
  /// if the Module has already been compiled.
  ///
  /// [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate)
  _i2.Future<_i3.WebAssemblyInstantiatedSource> Function(
    _i2.Object bytes, [
    _i3.Imports? importObject,
  ]) $1,

  /// The WebAssembly.instantiate() function allows you to compile and instantiate
  /// WebAssembly code.
  ///
  /// This overload takes the WebAssembly binary code, in the form of a typed
  /// array or ArrayBuffer, and performs both compilation and instantiation in one step.
  /// The returned Promise resolves to both a compiled WebAssembly.Module and its first
  /// WebAssembly.Instance.
  ///
  /// [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate)
  /// The WebAssembly.instantiate() function allows you to compile and instantiate
  /// WebAssembly code.
  ///
  /// This overload takes an already-compiled WebAssembly.Module and returns
  /// a Promise that resolves to an Instance of that Module. This overload is useful
  /// if the Module has already been compiled.
  ///
  /// [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate)
  _i2.Future<_i3.Instance> Function(
    _i3.Module moduleObject, [
    _i3.Imports? importObject,
  ]) $2,
}) get instantiate => (
      $1: _instantiate$1,
      $2: _instantiate$2,
    );