PreferencesDevicePreviewStorage class

A storage that keeps all preferences stored as json in a single preference entry with the preferenceKey key.

If you're using many plugins, it may be better to use the FileDevicePreviewStorage.

Inheritance

Constructors

PreferencesDevicePreviewStorage({String preferenceKey = defaultPreferencesKey})

Properties

hashCode int
The hash code for this object.
no setterinherited
preferenceKey String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load() Future<DevicePreviewData?>
Load the last saved preferences (until ignore is true).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(DevicePreviewData data) Future<void>
Save the current preferences (until ignore is true).
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

defaultPreferencesKey → const String