disableShadows property Null safety

  1. @override
bool disableShadows
override

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.

Implementation

@override
bool get disableShadows => true;