SharedPreferencesEngine class

Storage engine to save to NSUserDefaults/SharedPreferences. You should only store utf8-encoded data here, like JSON, or base64 data.

Constructors

SharedPreferencesEngine([String key = "app"])

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
Shared preferences key to save to.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load() Future<Uint8List?>
Load state (can return null)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(Uint8List? data) Future<void>
Save state (data could be null)
toString() String
A string representation of this object.
inherited

Operators

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