PreferencesDevicePreviewStorage class

Since share_preferences makes pub considering the package as not supported we should remove this functionnality from the web version to get the maximum score.

Inheritance

Constructors

PreferencesDevicePreviewStorage({String preferenceKey = defaultPreferencesKey})

Properties

hashCode int
The hash code for this object.
no setterinherited
preferenceKey String
The preferences key used to save the user configuration.
final
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

Constants

defaultPreferencesKey → const String
The default preferences key used to save the user configuration.