Add more structure to errors. #34684
This CL refactors more FlutterError messages to take advantage of structured error functionality.
Replace this paragraph with a list of issues related to this PR from our [issue database]. Indicate, which of these issues are resolved or fixed by this PR.
I added tests for the error messages in multiple packages as existing test coverage was quite spotty.
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
Does your PR require Flutter developers to manually update their apps to accommodate your change?
Ready for another look. I'm not sure if the existing spacing between blocks in the Semantics error message case was intentional or accidental. Left in line breaks between entries in the list in case they were considered useful. Please comment in semantics_test.dart if they should be removed.