respond<T> method
- Responder<
T> responder
Subscribe Eventbus
on a specific type of event, and register responder to it.
When T
is not given or given as dynamic
, it listens to all events regardless of the type.
Returns Subscription, which can be disposed to cancel all the subsciption registered to itself.
Implementation
Subscription respond<T>(Responder<T> responder) =>
Subscription(_stream).respond<T>(responder);