29
loading...
This website collects cookies to deliver better user experience
--no-sound-null-safety
. So if you were running flutter run
you would do it like this:flutter run --no-sound-null-safety
flutter test --no-sound-null-safety
// @dart=2.9
to the top of the entry point(main.dart) of your app:// @dart=2.9
main() {
// Do something
}
--no-sound-null-safety
flag. You can use the version pinning above to slowly migrate your project files too, which is pretty good if you would like to break your migration up into small commits(but still keep everything working between each commit).--no-sound-null-safety
because I wanted to migrate all of my tests too. By the way, you still have to pass this flag even when you're doing stuff like building APK files:fvm flutter build apk --split-per-abi --no-sound-null-safety
--no-sound-null-safety
to the ones that are relevant to you. You could opt to pass it to all flutter
CLI commands too. I just added it for run and test in the end. Here's a screenshot of my setup for reference: