TGSharedPreferences class Null safety

TGFramework's Shared Preferences implementation

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addListener(TGSharedPreferencesListener? listener) → void
Add listener
createdAt() DateTime?
TGSharedPreferences created at
get(String key) Future
Gets content for given key
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove(String key) Future<bool>
Removes content for given key
removeAllListeners() → void
Remove all listeners
removeListener(TGSharedPreferencesListener? listener) → void
Remove listener
set(String key, dynamic value) Future<bool>
Sets content for given key
toString() String
A string representation of this object. [...]
inherited
validSince() Duration
Number of milliseconds passed since valid TGSharedPreferences has been created

Operators

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

Static Methods

getInstance() TGSharedPreferences
Gets TGSharedPreferences's instance reference