getInheritedSeedOfExactType<T extends Object> method
Returns the nearest ancestor value provided via InheritedSeed<T> of
exact type T without registering a dependency; null when no such
ancestor exists.
The non-subscribing counterpart of dependOnInheritedSeedOfExactType:
the returned value is a snapshot — a later change to the provided value
does not rebuild the bound branch. This is the lookup to use from
State.initState (which never re-runs, so a subscription registered
there invites a stale cached read) and from effects and teardown; use
the depend variant wherever the branch must rebuild on change.
Throws StateError after the bound branch unmounts.
Implementation
@override
T? getInheritedSeedOfExactType<T extends Object>() {
_checkMounted('getInheritedSeedOfExactType');
return _values[T] as T?;
}