debugAssertAllPaintingVarsUnset function
Returns true if none of the painting library debug variables have been changed.
This function is used by the test framework to ensure that debug variables haven't been inadvertently changed.
See docs.flutter.io/flutter/rendering/painting-library.html for a complete list.
The debugDisableShadowsOverride
argument can be provided to override
the expected value for debugDisableShadows. (This exists because the
test framework itself overrides this value in some cases.)
Implementation
bool debugAssertAllPaintingVarsUnset(String reason, { bool debugDisableShadowsOverride = false }) {
assert(() {
if (debugDisableShadows != debugDisableShadowsOverride) {
throw FlutterError(reason);
}
return true;
}());
return true;
}