respond<T> method

Subscription respond <T>(
  1. 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.


Subscription respond<T>(Responder<T> responder) =>