registerTo<T extends Event> abstract method

Stream<T> registerTo<T extends Event>(
  1. [bool includeLastEvent = false]
)

Listens for events of Type Event and its subtypes.

The method is called like this: eventBus.registerTo

if includeLastEvent is true the stream will emit the last event with that specific type. If there is no last event it won't to anything.

Implementation

Stream<T> registerTo<T extends Event>([bool includeLastEvent = false]);