PrefStorage class

Inheritance

Constructors

PrefStorage({required SharedPreferences prefs})

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

getBool(String key) → bool?
override
getDouble(String key) → double?
override
getInt(String key) → int?
override
getString(String key) → String?
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key) → Future<bool>
override
setBool(String key, bool value) → Future<bool>
override
setDouble(String key, double value) → Future<bool>
override
setInt(String key, int value) → Future<bool>
override
setString(String key, String value) → Future<bool>
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

init() → Future<Storage>