FileDevicePreviewStorage class
A storage that saves device preview user preferences into
a single file
as json content.
- Inheritance
-
- Object
- DevicePreviewStorage
- FileDevicePreviewStorage
Constructors
- FileDevicePreviewStorage({required String filePath})
Properties
Methods
-
load(
) → Future< DevicePreviewData?> -
Load data from the storage that has been saved previously with
the save method.
override
-
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.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited