TransitionFunction<Event, State> typedef Null safety

Stream<Transition<Event, State>> TransitionFunction<Event, State>(
  1. Event
)

Signature for a mapper function which takes an Event as input and outputs a Stream of Transition objects.

Implementation

typedef TransitionFunction<Event, State> = Stream<Transition<Event, State>>
    Function(Event);