ManagerIntercom class
Represents a two-sided communication channel between a plugin and a manager.
ManagerIntercom is meant to handle a communication with a plugin for a plugin manager. Moreover, it handles plugin init process (refer to initialize for more details).
- Inheritance
-
- Object
- IntercomBase
- ManagerIntercom
Constructors
- ManagerIntercom(Uri uri)
- Creates an instance of ManagerIntercom, does not initialize anything.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Shows whether intercom was initialized.
no setteroverride
- isolate ↔ Isolate
-
Running plugin instance
latefinal
- listener → OrderedListener
-
Composite listener bound to plugin's output port.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri ↔ Uri
-
Path to the plugin executable.
latefinal
Methods
-
close(
) → void -
Closes the input port of the channel, allowing to destroy the intercom correctly.
inherited
-
initialize(
{List< String> args = const [], Duration timeout = const Duration(seconds: 2)}) → Future<void> -
Initializes the intercom.
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