watch<T> method
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();
}