getDouble method

Future<double?> getDouble(
  1. String key, {
  2. MMkvPart part = MMkvPart.normal,
})

获取double值 key 存储key part 缓存区类型

Implementation

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