putDouble method

Future<double?> putDouble(
  1. String key, {
  2. double value = 0.0,
  3. MMkvPart part = MMkvPart.normal,
})

保存double数据 key 存储key value double value part 缓存区类型

Implementation

Future<double?> putDouble(String key, {double value = 0.0, MMkvPart part = MMkvPart.normal}) {
  if (key.isEmptyString) {
    return Future.value(0);
  }
  return _cacheData<double>(key, value, "double", part);
}