readBool static method

Future<bool?> readBool(
  1. String key, {
  2. String MMKVId = "default",
})

Implementation

static Future<bool?> readBool(String key, {String MMKVId = "default"}) async {
  bool? boolResult;
  String? boolString = await SharedStore.readValue(key, valueType.boolType, MMKVId);
  if (boolString != null) {
    boolResult = boolString == "true" ? true : false;
  }
  return boolResult;
}