getDouble static method

Future getDouble({
  1. required String key,
})

Implementation

static Future getDouble({required String key}) async {
  final SharedPreferences sharedPreferences =
      await SharedPreferences.getInstance();
  var cache = sharedPreferences.getDouble(key);
  return cache;
}