postMessage top-level property

({void Function(List<Object> transfer, [dynamic message]) $1, void Function([dynamic message, StructuredSerializeOptions? options]) $2}) get postMessage

Overload accessor: $1, $2

Implementation

({
  /// Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
  ///
  /// [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
  void Function(
    _i2.List<_i2.Object> transfer, [
    _i2.dynamic message,
  ]) $1,

  /// Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
  ///
  /// [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
  void Function([
    _i2.dynamic message,
    _i3.StructuredSerializeOptions? options,
  ]) $2,
}) get postMessage => (
      $1: _postMessage$1,
      $2: _postMessage$2,
    );