BackgroundIsolateBinaryMessenger class
A BinaryMessenger for use on background (non-root) isolates.
- Inheritance
-
- Object
- BinaryMessenger
- BackgroundIsolateBinaryMessenger
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkMockMessageHandler(
String channel, Object? handler) → bool -
Available on BinaryMessenger, provided by the TestBinaryMessengerExtension extension
Shim for TestDefaultBinaryMessenger.checkMockMessageHandler. -
handlePlatformMessage(
String channel, ByteData? data, PlatformMessageResponseCallback? callback) → Future< void> -
Queues a message.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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.
override
-
setMessageHandler(
String channel, MessageHandler? handler) → void -
Set a callback for receiving messages from the platform plugins on the
given channel, without decoding them.
override
-
setMockMessageHandler(
String channel, MessageHandler? handler) → void -
Available on BinaryMessenger, provided by the TestBinaryMessengerExtension extension
Shim for TestDefaultBinaryMessenger.setMockMessageHandler. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → BinaryMessenger
-
The existing instance of this class, if any.
no setter
Static Methods
-
ensureInitialized(
RootIsolateToken token) → void - Ensures that BackgroundIsolateBinaryMessenger.instance has been initialized.