watch<T> method

T watch<T>(
  1. CreatorBase<T> creator
)

Read the current state of the creator, also establish the dependency creator -> _owner.

Implementation

T watch<T>(CreatorBase<T> creator) {
  if (_owner != null) {
    _graph.addEdge(creator, _owner!);
    _after[_owner!]?.add(creator);
  }
  return _element<T>(creator).getState();
}