getString method

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

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

Implementation

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