bindState<N> method
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();