Handler<T> typedef
Handler function type for request responders.
The handler receives the event and the previous value of the topic. The returned value is the response; an exception becomes the error of the request.
Implementation
typedef Handler<T> = Future<dynamic> Function(EventDTO<T> dto, T? lastData);