useOwnLayer property
Whether to create its own LiquidGlassLayer or share an ancestor layer.
Defaults to false. When value is true in GlassSurfaceStyle.glass
mode, GlassButton automatically promotes the tinted prominent pill to an
isolated layer (unless nested inside a glass surface with
avoidsRefraction) so the accent tint is always preserved.
Implementation
final bool useOwnLayer;