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

AsyncBinding<T> class

*<Null safety>*

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

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(T impl, InterfaceRequest interfaceRequest) void

Binds the given implementation to the given interface request. ...

close([int? statusCode]) void

Close the bound channel. ...

handleMessage(Message message, MessageSink respond) void

Decodes the given message and dispatches the decoded message to impl. ...
@protected

noSuchMethod(Invocation invocation) dynamic

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

sendMessage(Message response) void

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

toString() String

Returns 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