GlassQualityStore class abstract
A pluggable backend for persisting GlassAdaptiveScope's settled
GlassQuality across app cold starts.
Implement this to back GlassQualityPersistence with any storage layer
(Hive, a database, a platform channel, ...). Most apps don't need a custom
implementation — GlassQualityPersistence.auto ships a shared_preferences
-backed one out of the box.
- Implementers
Constructors
- GlassQualityStore()
-
Const constructor for subclasses.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
nullif none has been saved yet (e.g. first launch). -
toString(
) → String -
A string representation of this object.
inherited
-
write(
GlassQuality quality) → Future< void> -
Persists
qualityas the new settled value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited