FileDevicePreviewStorage class

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

Inheritance

Constructors

FileDevicePreviewStorage({required File file})

Properties

file File
The file 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 the last saved preferences.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(DevicePreviewData data) Future<void>
Save the current preferences.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited