In migrating //flutter_tools/lib/src/commands/update_packages.dart (#99357) to null-safety revealed some anti-patterns in the code, such as late initialization of fields that could probably be refactored to final. As this would mean semantically changing the code, I opted to not make those changes in the null-safety PR.