FileDevicePreviewStorage class

A storage that saves device preview user preferences into a single file as json content.

Inheritance

Constructors

FileDevicePreviewStorage({required String filePath})

Properties

filePath String
The file to which the json content is saved to.
final
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.
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