dependOnInheritedWidget method

  1. @override
bool dependOnInheritedWidget(
  1. BuildContext? context
)
override

Link a widget to a InheritedWidget of type U

Implementation

@override
bool dependOnInheritedWidget(BuildContext? context) =>
    _inheritedStatefulWidget?.dependOnInheritedWidget(context) ?? false;