MyPreferences class

Constructors

MyPreferences()

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

addItemToMap(String mapKey, String itemKey, dynamic value) Future<void>
addLimitedStringList(String key, String text, {int maxNumber = 5}) Future<bool>
clear() Future<bool>
deleteItemMap(String mapKey, String itemKey) Future<void>
getBool(String key, [bool? defaultValue]) bool?
getDouble(String key, [double? defaultValue]) double?
getHiveMap(dynamic boxName) Future<Map>
getInt(String key, [int? defaultValue]) int?
getLimitedStringList(String key, [List<String>? defaultValue]) List<String>?
getMap(String key) Map<String, dynamic>
getString(String key, [String? defaultValue]) String?
getStringList(String key, [List<String>? defaultValue]) List<String>?
init() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key) Future<bool>
removeThisStringInStringList(String key, String text) Future<bool>
setBool(String key, bool value) Future<bool>
setDouble(String key, double value) Future<bool>
setHiveMap(String boxName, Map data, {bool clearExistingData = false}) Future
setInt(String key, int value) Future<bool>
setMap(String key, Map value) Future<void>
setString(String key, String value) Future<bool>
setStringList(String key, List<String> value) Future<bool>
toString() String
A string representation of this object.
inherited

Operators

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