*<Null safety>*
Listens for messages and dispatches them to an implementation of T.
Constructors
Binding ()
Creates a binding object in an unbound state. ...
Properties
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
Whether this object is bound to a channel. ...
read-only
onBind ↔ _VoidCallback?
Event for binding.
read / write
onClose ↔ _VoidCallback?
Event for when the binding is closed.
read / write
onConnectionError ↔ _VoidCallback?
Called when the channel underneath closes.
read / write
onUnbind ↔ _VoidCallback?
Event for unbinding.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
Methods
bind(T impl, InterfaceRequest<T> interfaceRequest) void
Binds the given implementation to the given interface request. ...
close() 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