Preferences class Null safety

Preferences class for storing and retrieving data from shared preferences

Constructors

Preferences(SharedPreferences shared)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
shared SharedPreferences
Shared preferences instance
final
storedGeoLocation List<Map<String, dynamic>>
Get stored location from shared preferences
read-only

Methods

addGeoLocation(Map<String, dynamic> location) → void
Add new location to stored location
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

instance() Future<Preferences>
Preferences instance