Move a few import directives to be in correct order. Fixes https://github.com/flutter/flutter/issues/130434
prefer_final_in_for_each