GlassAccessibilityData class

Accessibility state for the liquid glass widget tree.

Obtain with GlassAccessibilityData.of or GlassAccessibilityData.maybeOf.

Annotations

Constructors

GlassAccessibilityData({required bool reduceMotion, required bool reduceTransparency})
Creates a new GlassAccessibilityData.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
reduceMotion → bool
When true, animated glass physics (jelly springs) should be disabled.
final
reduceTransparency → bool
When true, the glass shader should degrade to a plain frosted surface.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

maybeOf(BuildContext context) → GlassAccessibilityData?
Returns the nearest GlassAccessibilityData, or null if not found.
of(BuildContext context) → GlassAccessibilityData
Returns the nearest GlassAccessibilityData in the widget tree.

Constants

defaults → const GlassAccessibilityData
The no-accessibility-restriction default used when no scope is in tree.