screenshotsDestinationOverride property

  1. @visibleForTesting
String? screenshotsDestinationOverride
getter/setter pair

Stands in for the define and the environment variable below, which are the two things a test process cannot change about itself: one is fixed at compile time and the other is read-only. Without it the standalone lane — what a bare flutter test writes, and the only lane a consumer's CI uses without the GUI — can be exercised nowhere but a subprocess.

Implementation

@visibleForTesting
static String? screenshotsDestinationOverride;