Handler<M, A> mixin

A Handler implements the logic to handle messages.

Classes that might be used as Actors or other Messengers must implement this mixin.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() FutureOr<void>
Close this Handler. This method must not be called by application code. The actors library will call this when an Actor that uses this Handler is closed.
handle(M message) FutureOr<A>
Handle a message, optionally sending an answer back to the caller.
init() FutureOr<void>
Initialize the state of this Handler.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited