I’m trying to update a big project with the version below, to a version with null safe but minimizing file changes.
environment:
sdk: ">=2.2.2 <3.0.0"
I’ve following dart’s doc https://dart.dev/null-safety/migration-guide#step1-wait but I’m not certain that’s what I’m looking for.
2
Answers
May the Release Notes will help you.
At least I saw in every release some null safety update at least since 2.2.0.
the null safety was introduced in the 2.12.0 version so any version under 2.12.0 the null safety is optional, but if you are having troubles with the null safety you can avoid al the "request" keyword using a ? when you declare the variables like this.
required String name;
to
String ? name;