PreferencesStorage class

Class to handle the storage of preferences such as metadata and notification settings

Constructors

PreferencesStorage.new()

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

notificationKey String
Key for the notification settings
final

Static Methods

getBool(String key) Future<bool>
Get a boolean instance from the shared preferences
getMetaData() Future<Map<String, dynamic>?>
getString(String key) Future<String>
Get a string instance from the shared preferences
saveBool(bool data, String key) Future<void>
Save a boolean instance to the shared preferences
saveMetadata(String metaData) → void
Save the push metadata to the shared preferences
saveString(String key, String data) Future<void>
Save a string instance to the shared preferences