object.nosuchmethod (dart:core-patch/object_patch.dart:54:5) code example
Example: object.nosuchmethod (dart:core-patch/object_patch.dart:54:5)
The latest version of provider is 5.0.0 which supports the new version of Flutter.
Try upgrading the package to this version.