Error: The method ‘inheritFromWidgetOfExactType’ isn‘t defined for the class ‘BuildContext’.
Example of a replacement:
Before : with InheritFromWidgetOfExactType
1 | static Name of(BuildContext context) { |
Now with dependOnInheritedWidgetOfExactType (Recommanded)
1 | static Name of(BuildContext context) { |