dependOnInheritedSeedOfExactType<T extends Object> method

  1. @override
T? dependOnInheritedSeedOfExactType<T extends Object>()

Returns the nearest ancestor value provided via InheritedSeed<T> of exact type T, registering the bound branch as a dependent; null when no such ancestor exists.

Throws StateError after the bound branch unmounts.

Implementation

@override
T? dependOnInheritedSeedOfExactType<T extends Object>() {
  _checkMounted('dependOnInheritedSeedOfExactType');
  return _values[T] as T?;
}