withoutPanes<T> static method

T withoutPanes<T>(
  1. T capture()
)

Builds the scenes of capture without panes, for a snapshot: offscreen a pane has no backdrop to bend and comes out a flat tint.

Implementation

static T withoutPanes<T>(T Function() capture) {
  _LiquidGlassLayer._skipped++;
  try {
    return capture();
  } finally {
    _LiquidGlassLayer._skipped--;
  }
}