'What is your recommended workflow for Flutter null safety migration tool

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!



Solution 1:[1]

When I was migrating with null safety this flow help me so much.

  1. Start with models or classes first.
  2. Then start with screens.
  3. Then go down the list as displayed by the null-migration tool Just go down the list as displayed by the null-migration tool
  4. Finally at main.dart

Solution 2:[2]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Ber