StorageUtil class
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
-
get<
T> (String key, {T? defaultValue}) → Future< T?> - value只支持int、double、bool、String基础数据 自定义对象数据请使用putWithJson
-
getWithJson<
T> (String key, OnFromJson< T> onFromJson, {T? defaultValue}) → Future<T?> - value为自定义对象时好想只会存在内存
-
init(
) → Future< bool> -
put(
String key, dynamic value) → Future< bool> - value只支持int、double、bool、String基础数据 自定义对象数据请使用putWithJson
-
putWithJson(
String key, String? json) → Future< bool> - value为自定义对象时好想只会存在内存