disableShadows property

  1. @protected
bool disableShadows

The value to set debugDisableShadows to while tests are running.

This can be used to reduce the likelihood of golden file tests being flaky, because shadow rendering is not always deterministic. The AutomatedTestWidgetsFlutterBinding sets this to true, so that all tests always run with shadows disabled.


bool get disableShadows => false;