postMessage method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), LinuxPlatform(note: 'Implemented via JavaScript MessageChannel API.'), WindowsPlatform(note: 'Implemented via JavaScript MessageChannel API.')])
- WebMessage message
Post a WebMessage to the entangled port.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(),
IOSPlatform(),
MacOSPlatform(),
LinuxPlatform(note: 'Implemented via JavaScript MessageChannel API.'),
WindowsPlatform(note: 'Implemented via JavaScript MessageChannel API.'),
],
)
Future<void> postMessage(WebMessage message) {
throw UnimplementedError(
'postMessage is not implemented on the current platform',
);
}