on<T extends StateEvent> method
Listen for events of a specific type.
Implementation
Stream<T> on<T extends StateEvent>() =>
_eventController.stream.where((e) => e is T).cast<T>();
Listen for events of a specific type.
Stream<T> on<T extends StateEvent>() =>
_eventController.stream.where((e) => e is T).cast<T>();