changes<Value> method

Stream<StoreChange<Value>> changes<Value>(
  1. Value mapper(
    1. State state
    )
)

Stream of changes (a pair of previous and current values of State) for given State mapper

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

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

Implementation

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