description

# postMessage abstract method

void postMessage(

1. dynamic message,
2. String targetOrigin, [
3. List<MessagePort>? messagePorts

])

Sends a cross-origin message.

## Other resources

- window.postMessage from MDN.
- Cross-document messaging from WHATWG.

## Implementation

    void postMessage(
      message,
      String targetOrigin, [
      List<MessagePort>? messagePorts,
    ]);