RequestHandler class
A request responder registered for a topic.
The closures erase the generic type of the handler, so a request received
from another isolate can be dispatched without knowing T statically.
Constructors
Properties
- accepts → bool Function(Object? data)
-
Whether this handler can process an event with
data.final - hashCode → int
-
The hash code for this object.
no setterinherited
- invoke → Future Function(EventDTO dto, Object? lastData)
-
Invokes the user handler with a typed DTO and the previous value.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topic → Topic
-
final
Methods
-
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