postToHost function

void postToHost(
  1. Map<String, Object?> message
)

Sends message to the page that embeds the demo. Only a page of the same origin receives it.

Implementation

void postToHost(Map<String, Object?> message) => _window.parent?.postMessage(message.jsify(), _window.location.origin);