FlowCallback<T> typedef

FlowCallback<T> = T Function(T state)

Signature for function which given an input flow state T will output a new flow state T.

It is used to compute the next flow state with FlowController.update and FlowController.complete.

Implementation

typedef FlowCallback<T> = T Function(T state);