readInt static method

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

Implementation

static Future<int?> readInt(String key, {String MMKVId = "default"}) async {
  int? intResult;
  String? intString = await SharedStore.readValue(key, valueType.intType, MMKVId);
  if (intString != null) {
    intResult = int.parse(intString);
  }
  return intResult;
}