canRecordImages property

bool get canRecordImages

Whether glass may record pictures into images: for a backdrop's copy, and for a control's lens over its own content. False only in a browser that blocks reading canvases back, such as Firefox or LibreWolf with privacy.resistFingerprinting, where CanvasKit fails inside toImageSync and breaks every draw after it. There, glass frosts with the browser's own blur, and controls lift without their lens.

Implementation

static bool get canRecordImages => debugCanRecordImagesOverride ?? (usable && canReadPixelsBack);