AsyncProxyController<T> class

A controller for Future based proxies.


AsyncProxyController ({String $serviceName, String $interfaceName})

Creates proxy controller.


$interfaceName → String

The name of the interface of T.

$serviceName → String

The service name associated with T, if any.

hashCode → int

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

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


Called when an epitaph is received (from channel closure).
read / write


Called whenever this object receives a response on a bound channel.
read / write

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(InterfaceHandle<T> interfaceHandle) void

Binds the proxy to the given interface handle.

close() void

Close the channel bound to the proxy.

getCompleter(int txid) Completer

Returns the completer associated with the given response message.

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.

proxyError(FidlError error) void

close the channel and forwards error to any open completers.

request() InterfaceRequest<T>

Creates an interface request whose peer is bound to this interface proxy.

sendMessage(OutgoingMessage message) void

Sends the given messages over the bound channel.

sendMessageWithResponse(OutgoingMessage message, Completer completer) void

Sends the given messages over the bound channel and registers a Completer to handle the response.

toString() String

A string representation of this object.

unbind() InterfaceHandle<T>

Unbinds the proxy and returns the unbound channel as an interface handle.


operator ==(Object other) bool

The equality operator.