This relands commit 14df7be3f9471a97f34e4601fb7710850373ac3b. Contributes to https://github.com/flutter/flutter/issues/130459 Needs https://github.com/flutter/flutter/issues/149851 to be fixed before getting merged
Reverts flutter/flutter#149383 as it caused failure for mac framework_tests_impeller.
Contributes to https://github.com/flutter/flutter/issues/130459 It adds a test for - `examples/api/lib/material/scaffold/scaffold.drawer.0.dart` - `examples/api/lib/material/scaffold/scaffold.end_drawer.0.dart`