GlassAdaptiveScopeData class

Data propagated by GlassAdaptiveScope to all glass widgets below it.

Obtain via GlassAdaptiveScopeData.of or GlassAdaptiveScopeData.maybeOf.

Annotations

Constructors

GlassAdaptiveScopeData({required GlassQuality effectiveQuality, required AdaptivePhase phase})
Creates GlassAdaptiveScopeData.
const

Properties

effectiveQuality GlassQuality
The current quality ceiling enforced by the scope.
final
hashCode int
The hash code for this object.
no setteroverride
phase AdaptivePhase
The current adaptation phase (probe → warmup → runtime).
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) GlassAdaptiveScopeData?
Returns the nearest GlassAdaptiveScopeData, or null if not found.
of(BuildContext context) GlassAdaptiveScopeData
Returns the nearest GlassAdaptiveScopeData from the widget tree.