TransitionFunction<Event, State> typedef Null safety

  1. @Deprecated('Use `on<Event>` with an `EventTransformer` instead. ' 'Will be removed in v8.0.0')
TransitionFunction<Event, State> = Stream<Transition<Event, State>> Function(Event)

@Deprecated - Use on<Event> with an EventTransformer instead. Will be removed in v8.0.0

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

Implementation

@Deprecated(
  'Use `on<Event>` with an `EventTransformer` instead. '
  'Will be removed in v8.0.0',
)
typedef TransitionFunction<Event, State> = Stream<Transition<Event, State>>
    Function(Event);