updates<Value> method

Stream<Value> updates<Value>(
  1. Value mapper(
    1. State state
    )
)

Stream of values for given State mapper

mapper - mapper function to get exact state field to listen to

Stream<StatefulData<List<Post>>?> get postsStream => getLocalInstance<PostsInteractor>().updates((state) => state.posts);

Implementation

Stream<Value> updates<Value>(Value Function(State state) mapper) =>
    _store.updates(mapper);