SharedPreferenceAppGroup class

Constructors

SharedPreferenceAppGroup()

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 Methods

get(String key) Future
Reads a value of any type from persistent storage under the specified app group.
getAll() Future<Map<String, dynamic>>
Reads all key-value pairs from persistent storage under the specified app group.
getBool(String key) Future<bool?>
Reads a boolean value from persistent storage under the specified app group.
getDouble(String key) Future<double?>
Reads a double value from persistent storage under the specified app group.
getInt(String key) Future<int?>
Reads a integer value from persistent storage under the specified app group.
getString(String key) Future<String?>
Reads a string value from persistent storage under the specified app group.
getStringList(String key) Future<List<String>?>
Reads a string array value from persistent storage under the specified app group.
remove(String key) Future<void>
Removes an entry from persistent storage under the specified app group.
removeAll() Future<void>
Removes all entry from persistent storage under the specified app group.
setAppGroup(String appGroup) Future<void>
Set app group ID for iOS
setBool(String key, bool? value) Future<void>
Saves a boolean value to persistent storage under the specified app group.
setDouble(String key, double? value) Future<void>
Saves a double value to persistent storage under the specified app group.
setInt(String key, int? value) Future<void>
Saves an integer value to persistent storage under the specified app group.
setString(String key, String? value) Future<void>
Saves a string value to persistent storage under the specified app group.
setStringList(String key, List<String>? value) Future<void>
Saves a string list value to persistent storage under the specified app group.