SharedPreferencesQualityStore class

Default GlassQualityStore backing GlassQualityPersistence.auto().

Persists the settled GlassQuality as its enum name (e.g. "standard") under a single SharedPreferences key.

Inheritance

Constructors

SharedPreferencesQualityStore({String key = 'flutter_liquid_glass_widgets.glass_quality'})
Creates a store, optionally under a custom SharedPreferences key.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
The SharedPreferences key the quality is stored under.
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
read() Future<GlassQuality?>
Reads the previously-persisted quality, or null if none has been saved yet (e.g. first launch).
override
toString() String
A string representation of this object.
inherited
write(GlassQuality quality) Future<void>
Persists quality as the new settled value.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited