GlassProxy.hidden constructor

const GlassProxy.hidden({
  1. Key? key,
  2. required Widget child,
})

See GlassProxyRole.hidden. The capture skips child and does not run its paint; whatever painted earlier at that place shows instead.

GlassProxy.hidden(child: ImpressionTracker(child: banner))

Implementation

const GlassProxy.hidden({super.key, required Widget super.child}) : role = GlassProxyRole.hidden, painter = null;