DevicePreviewStorage class abstract
A storage for device preview user's preferences.
Constructors
- DevicePreviewStorage()
-
const
- DevicePreviewStorage.none()
-
A storage that keep preferences only in memory : all preferences are reset on each
fresh start of the app.
factory
- DevicePreviewStorage.preferences({String preferenceKey = PreferencesDevicePreviewStorage.defaultPreferencesKey})
-
A storage that keeps all preferences stored as json in the
preferences entry with the
preferenceKey
key.factory
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
-
load(
) → Future< DevicePreviewData?> - Load data from the storage that has been saved previously with the save method.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
DevicePreviewData data) → Future< void> -
Save the given
data
to the storage so that it can be loaded later with the load method. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited