densityFactor property

double densityFactor
final

Density factor for elevation physics (Skia/Web only).

Range: 0.0 (normal) to 1.0 (fully elevated)

When a parent container provides blur (batch-blur optimization), elevated buttons use this to simulate the "double-darkening" effect of nested BackdropFilters without the O(n) performance cost.

On Impeller, this is not needed as each widget can have its own blur.

Defaults to 0.0.

Implementation

final double densityFactor;