getInt static method

Future<int> getInt(
  1. String key,
  2. int value
)

Implementation

static Future<int> getInt(String key, int value) async {
  await prepareSp();
  return prefs!.getInt(key) ?? value;
}