bindState<N> method

Stream<N> bindState<N>(
  1. N convert(
    1. State currentState
    )
)

Maps current state stream to the new one using convert method. Uses distinct operator to skip recurring values.

Implementation

Stream<N> bindState<N>(N Function(State currentState) convert) =>
    state.map(convert).distinct();