Search code examples
flutterdart-null-safetynull-safety

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

  • 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