AsyncBinding<T> class


AsyncBinding (String $interfaceName)

Creates a binding object in an unbound state. ...


$interfaceName → String

The name of the interface T as a string. ...

hashCode → int

The hash code for this object. ...
read-only, inherited

impl → T

The implementation of T bound using this object. ...

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


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


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. ...

sendMessage(OutgoingMessage response) void

Sends the given message over the bound channel. ...

toString() String

A string representation of this object. ...

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. ...


operator ==(Object other) bool

The equality operator. ...