When I run flutter pub get, I am getting this error:
Failed to start the Dart CLI isolate
(null).
pub get failed (255; (null).)

In flutter doctor, there is no issue.
/bin/cacheRun flutter clean in the project root directory.
Delete the pub cache folder from C:\Users\{your username}\AppData\Roaming\Pub.
Delete all the packages folders in your project (also in subfolders).
Delete the pubspec.lock file in your project.
Run pub get again from a command line or select Tools in the Dart Editor menu, and then select Pub Get.
reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With