I am using the Flutter null safety migration tool. What is your recommended workflow for null safety migration?
For example:
- Start at
main.dart
first and work your way out from there? - Start with models or classes first?
- Start with screens first?
- Just go down the list as displayed by the null-migration tool?
Thanks for your guidance!
CodePudding user response:
When I was migrating with null safety this flow help me so much.
- Start with models or classes first.
- Then start with screens.
- Then go down the list as displayed by the null-migration tool Just go down the list as displayed by the null-migration tool?
- Finally at main.dart
CodePudding user response:
It may be helpful to use a tool like lakos to analyze the internal dependencies of the classes and source files.
The I would start converting to null safety at the leaves of the dependency tree, using info from the null safety-migration tool.