PluginIntercom class
Represents a two-sided communication channel between a plugin and a manager.
PluginIntercom is meant to handle a communication with a plugin manager for a plugin.
- Inheritance
-
- Object
- IntercomBase
- PluginIntercom
Constructors
- PluginIntercom(ReceivePort _inPort, SendPort _outPort)
- Creates an instance of PluginIntercom, does not initialize anything.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Shows whether intercom was initialized.
no setteroverride
- listener → OrderedListener
-
Composite listener bound to plugin's output port.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void -
Closes the input port of the channel, allowing to destroy the intercom correctly.
inherited
-
initialize(
) → void -
Binds a listener to given ReceivePort and sends its corresponding SendPort
to the plugin manager.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendRaw(
dynamic data) → void -
Sends a raw data chunk to another side of channel.
inherited
-
sendSignal(
Message message) → void -
Sends a message to another side of channel.
inherited
-
sendWaitWhere(
Message message, Filter filter, {Duration? timeout}) → Future< Message> -
Sends a message to another side of channel and waits for the response.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited