readDouble static method

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

Implementation

static Future<double?> readDouble(String key, {String MMKVId = "default"}) async {
  double? doubleResult;
  String? doubleString = await SharedStore.readValue(key, valueType.doubleType, MMKVId);
  if (doubleString != null) {
    doubleResult = double.parse(doubleString);
  }
  return doubleResult;
}