emitPlatformMessage method

void emitPlatformMessage(
  1. String channel,
  2. ByteData? data
)

Dispatch a message to the platform.

Implementation

void emitPlatformMessage(String channel, ByteData? data) {
  _binding.channelBuffers.push(channel, data, (data) {});
}