listen<T> method
void
listen<T>(
- dynamic handler(
- T
Implementation
void listen<T>(Function(T) handler) {
if (_handlers[T] == null) _handlers[T] = <Function>[];
_handlers[T]!.add(handler);
}