subState<T> method

Stream<T> subState<T>(
  1. T mapper(
    1. S state
    )
)

Get a substate of the state with a mapper function

Implementation

Stream<T> subState<T>(T Function(S state) mapper) => stream.map<T>(mapper).distinct();