select<T> method

Stream<T> select<T>(
  1. T mapCallback(
    1. S state
    )
)

Return the part of the current state of the controller as a Stream<S>.

Implementation

Stream<T> select<T>(T Function(S state) mapCallback) {
  return _store.map<T>(mapCallback).distinct();
}