MmkvUtils class

Constructors

MmkvUtils()
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

getBool(String key, {MMkvPart part = MMkvPart.normal}) Future<bool?>
获取bool值 key 存储key part 缓存区类型
getDouble(String key, {MMkvPart part = MMkvPart.normal}) Future<double?>
获取double值 key 存储key part 缓存区类型
getInt(String key, {MMkvPart part = MMkvPart.normal}) Future<int?>
获取int值 key 存储key part 缓存区类型
getString(String key, {MMkvPart part = MMkvPart.normal}) Future<String?>
获取string值 key 存储key part 缓存区类型
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putBool(String key, {bool value = false, MMkvPart part = MMkvPart.normal}) Future<bool?>
保存bool数据 key 存储key value bool value part 缓存区类型
putDouble(String key, {double value = 0.0, MMkvPart part = MMkvPart.normal}) Future<double?>
保存double数据 key 存储key value double value part 缓存区类型
putInt(String key, {int value = 0, MMkvPart part = MMkvPart.normal}) Future<int?>
保存int数据 key 存储key value int value part 缓存区类型
putString(String key, {String value = "", MMkvPart part = MMkvPart.normal}) Future<String?>
保存string数据 key 存储key value string value part 缓存区类型
remove(String key, {MMkvPart part = MMkvPart.normal}) Future
清除key对应缓存数据 key 存储key part 缓存区类型
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance MmkvUtils
no setter