Future<ByteData> sendBinary(String channel, ByteData message)

Send a binary message to the host application.

Source

static Future<ByteData> sendBinary(String channel, ByteData message) {
  final _PlatformMessageHandler handler = _mockHandlers[channel];
  if (handler != null)
    return handler(message);
  return _sendPlatformMessage(channel, message);
}