getInt static method

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

Implementation

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