postMessage property

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

Overload accessor: $1, $2

Implementation

({
  /// Posts a message through the channel. Objects listed in transfer are
  ///  transferred, not just cloned, meaning that they are no longer usable on the
  ///  sending side.
  ///
  ///  Throws a "DataCloneError" DOMException if transfer contains duplicate
  ///  objects or port, or if message could not be cloned.
  void Function(
    _i2.List<_i2.Object> transfer, [
    _i2.dynamic message,
  ]) $1,

  /// Posts a message through the channel. Objects listed in transfer are
  /// transferred, not just cloned, meaning that they are no longer usable on the
  /// sending side.
  ///
  /// Throws a "DataCloneError" DOMException if transfer contains duplicate
  /// objects or port, or if message could not be cloned.
  void Function([
    _i2.dynamic message,
    _i3.StructuredSerializeOptions? options,
  ]) $2,
}) get postMessage => (
      $1: _postMessage$1,
      $2: _postMessage$2,
    );