If you import a library or package and you may get Error: Error when reading ‘../../.pub-cache/hosted/pub.dev/get-4.6.1/lib/get.dart/’: Not a directory.
It happens because your path is not a directory. In flutter, if you import a package or a file it must end with .dart.
But from the error you see there’s an extra slash. After slash there’s no file. So you have slash at the end, there must be a file after it.
If no file after slash, you must remove the slash. Otherwise you will get error “Not a directory”