Listens for messages and dispatches them to an implementation of T
.
Constructors
AsyncBinding (String $interfaceName)
Creates a binding object in an unbound state.
Properties
$interfaceName → String
The name of the interface T
as a string.
final
hashCode → int
The hash code for this object.
read-only, inherited
impl → T
The implementation of T
bound using this object.
read-only
isBound → bool
Is this interface bound?
read-only, inherited
isClosed → bool
Is this interface closed?
read-only, inherited
isUnbound → bool
Is this interface unbound?
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
state ↔ InterfaceState
Gets the current state.
read / write, inherited
stateChanges → Stream<InterfaceState>
A stream of state changes.
read-only, inherited
whenBound → Future<void>
A future that completes when the interface becomes bound.
read-only, inherited
whenClosed → Future<void>
A future that completes when the interface is closed.
read-only, inherited
Methods
bind(T impl, InterfaceRequest interfaceRequest) void
Binds the given implementation to the given interface request.
close([int statusCode]) void
Close the bound channel.
handleMessage(IncomingMessage message, OutgoingMessageSink respond) void
Decodes the given message and dispatches the decoded message to impl.
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
inherited
sendMessage(OutgoingMessage response) void
Sends the given message over the bound channel.
toString() String
A string representation of this object.
inherited
unbind() InterfaceRequest<T>
Unbinds impl and returns the unbound channel as an interface request.
wrap(T impl) InterfaceHandle<T>
Returns an interface handle whose peer is bound to the given object.
Operators
operator ==(Object other) bool
The equality operator.
inherited