resolve method

void resolve()

Re-resolves against the host's current ancestors, and drops the result again when the host unmounts or rebuilds.

Implementation

void resolve() {
  _value = _host.ancestors.whereType<T>().firstOrNull;
  assert(_value != null, 'Must have an ancestor implementing $T.');
  _host.trash(() => _value = null);
}