whileInProgress<T extends AppEvent> method

  1. @override
Stream<bool> whileInProgress<T extends AppEvent>()
override

Subscribe EventBus on a specific type of event, and register responder to it.

Implementation

@override
Stream<bool> whileInProgress<T extends AppEvent>() {
  return _inProgress.map((events) {
    return events.whereType<T>().isNotEmpty;
  });
}