SimpleStorage class
origin: kt_ifm_gtid_mob/lib/shared/simple_storage.dart author: idnmedia, anovsiradj, opencode-go/glm-5.2 version: 2024-12-09, revised: 2026-08-17
Typed SharedPreferences wrapper. Standalone (NO GetX, D5).
Supports String / int / bool / double / List<String>.
Constructors
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
-
cleanData(
) → Future< bool> -
load<
T> (String key, {T? defaultValue}) → Future< T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeData(
String key) → Future< bool> -
save<
T> (String key, T data) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
typeOf<
T> () → Type
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
getter/setter pair