BinaryMessenger class Null safety

A messenger which sends binary data across the Flutter platform barrier.

This class also registers handlers for incoming messages.

Implementers
Available Extensions

Constructors

BinaryMessenger()
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

handlePlatformMessage(String channel, ByteData? data, PlatformMessageResponseCallback? callback) Future<void>
Queues a message.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
send(String channel, ByteData? message) Future<ByteData?>?
Send a binary message to the platform plugins on the given channel.
setMessageHandler(String channel, MessageHandler? handler) → void
Set a callback for receiving messages from the platform plugins on the given channel, without decoding them.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited