inheritWidget<T extends InheritedWidget> static method
Link a widget to an InheritedWidget of type T
Implementation
static bool inheritWidget<T extends InheritedWidget>(BuildContext context,
{Object? aspect}) =>
context.dependOnInheritedWidgetOfExactType<T>(aspect: aspect) != null;