TGSharedPreferences class Null safety

TGFramework's Shared Preferences implementation


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


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. [...]
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. [...]
validSince() Duration
Number of milliseconds passed since valid TGSharedPreferences has been created


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

Static Methods

getInstance() TGSharedPreferences
Gets TGSharedPreferences's instance reference