Preferences class

preferences to used as a object

Constructors

Preferences()

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

clear() Future<bool?>
contains(String key) Future<bool?>
dispose() → void
getBool(String key, {dynamic defValue = false}) Future<bool?>
getDouble(String key, {dynamic defValue = 0.0}) Future<double?>
getInt(String key, {dynamic defValue = 0}) Future<int?>
getKeys() Future<Set<String>?>
getPreferences() Future<SharedPreferences?>
getString(String key, {dynamic defValue = ""}) Future<String?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key) Future<bool?>
setBool(String key, bool value) Future<bool?>
setDouble(String key, double value) Future<bool?>
setInt(String key, int value) Future<bool?>
setString(String key, String value) Future<bool?>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

init() → dynamic