on<E> method

Stream on<E>()

Implementation

Stream<dynamic> on<E>() => T == dynamic
    ? streamController.stream
    : streamController.stream.where((dynamic event) => event is T).cast<T>();