debugPaintGlassSurfaces top-level property Foundations

bool debugPaintGlassSurfaces
getter/setter pair

Outlines every registered surface and prints nothing.

The register is otherwise invisible — a surface that failed to register and one that registered in the wrong coordinate system look identical on screen, which is the shape of defect that survives longest. Debug builds only, wired the way debugPaintSizeEnabled is.

void main() {
  debugPaintGlassSurfaces = true;
  runApp(const MyApp());
}

Implementation

bool debugPaintGlassSurfaces = false;