MessageChannel class

MessageChannel can be used to communicate with its counterpart (handler) written in Rust. This class is for low level message sending, you probably want to use NativeMethodChannel and NativeEventChannel, which are built on top of it.

Constructors

MessageChannel(String name, {required MessageChannelContext context})

Properties

handler MessageChannelHandler?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessage(dynamic message) Future
setHandler(MessageChannelHandler? handler) → void
toString() String
A string representation of this object.
inherited

Operators

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