dependOnInheritedWidgetOfExactType<T extends InheritedWidget> method
T
dependOnInheritedWidgetOfExactType<T extends InheritedWidget>()
Returns the nearest InheritedWidget with the exact type T
. If T
is
updated, the part of the Node tree with this context is rebuilt.
Also, if the Node owning this context is a StatefulNode, State.dependenciesDidUpdate will be called.
Implementation
T dependOnInheritedWidgetOfExactType<T extends InheritedWidget>() =>
_node.dependOnInheritedWidgetOfExactType<T>();