I get the error below when I import the package in my dart page.
file:///Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/states_rebuilder-1.11.1/lib/src/reactive_model.dart:411:17: Error: The method
'dependOnInheritedWidgetOfExactType' isn't defined for the class 'BuildContext'.
'BuildContext' is from 'package:flutter/src/widgets/framework.dart'
('file:///Users//development/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dependOnInheritedWidgetOfExactType'.
context.dependOnInheritedWidgetOfExactType<InheritedInject>();
I get the error below when I import the package in my dart page.