MemoryUtils class
内存存储
Constructors
- MemoryUtils()
-
factory
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
-
clearAll(
) → void - 移除所有缓存
-
get(
String key) → dynamic -
获取临时缓存
key
cache key -
getBool(
String key, {bool defaultValue = false}) → bool -
获取缓存bool
key
cache keydefaultValue
默认值 -
getDouble(
String key) → double -
获取缓存double
key
cache key -
getInt(
String key) → int -
获取缓存int
key
cache key -
getNum(
String key) → num -
获取缓存num
key
cache key -
getString(
String key) → String -
获取缓存String
key
cache key -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key) → void -
removeContainKey(
String containKey) → void -
移除包含containKey的缓存
containKey
包含缓存key -
set(
String key, dynamic value) → void -
设置临时缓存
key
cache keyvalue
cache value -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → MemoryUtils
-
no setter