I erased in my folder .pub-cache/hosted/pub.dartlang.org/this_plugin
.pub-cache/hosted/pub.dartlang.org/this_plugin
What is the command to update the dependencies inside pubsec.yaml
pubsec.yaml
This steps worked for me
Delete the pubspec.lock file then run the command flutter pub get again.
pubspec.lock
flutter pub get