Google is committed to advancing racial equity for Black communities. See how.

AsyncProxyController<T> class

*<Null safety>*

A controller for Future based proxies.

Constructors

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

Creates proxy controller. ...

Properties

$interfaceName → String?

The name of the interface of T. ...
final

$serviceName → String?

The service name associated with T, if any. ...
final

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

onEpitaphReceivedEpitaphHandler?

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

onResponseMessageSink?

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

stateInterfaceState

Gets the current state.
@protected, 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(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. ...
inherited

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(Message message) void

Sends the given messages over the bound channel. ...

sendMessageWithResponse(Message message, Completer completer) void

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

toString() String

Returns a string representation of this object.
inherited

unbind() InterfaceHandle<T>

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

Operators

operator ==(Object other) bool

The equality operator. ...
inherited