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
获取临时缓存 keycache key
getBool(String key, {bool defaultValue = false}) bool
获取缓存bool keycache key defaultValue 默认值
getDouble(String key) double
获取缓存double keycache key
getInt(String key) int
获取缓存int keycache key
getNum(String key) num
获取缓存num keycache 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
设置临时缓存 keycache key valuecache 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