TransitionFunction<Event, State> typedef Null safety

TransitionFunction<Event, State> = Stream<Transition<Event, State>> Function(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);