SharedPreferencesQualityStore class
Default GlassQualityStore backing GlassQualityPersistence.auto().
Persists the settled GlassQuality as its enum name (e.g. "standard")
under a single SharedPreferences key.
- Inheritance
-
- Object
- GlassQualityStore
- SharedPreferencesQualityStore
Constructors
-
Creates a store, optionally under a custom
SharedPreferenceskey.const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → Future< GlassQuality?> -
Reads the previously-persisted quality, or
nullif 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
qualityas the new settled value.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited