LocalStorage class

Constructors

LocalStorage()

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

clear() Future<void>
getBool(String key, {bool def = false}) bool
getDouble(String key, {double? def}) double
getInt(String key, {int? def}) int
getJson(String key) Map<String, dynamic>
getString(String key, {String? def}) String
load() Future<SharedPreferences?>
setBool(String key, bool value) → void
setDouble(String key, double value) → void
setInt(String key, int value) → void
setJson(String key, Map<String, dynamic> map) → void
setString(String key, String value) → void

Constants

TOKEN → const String
USER → const String