if
switch
Reverts flutter/flutter#147793 Introduced https://github.com/flutter/flutter/issues/148548.
main