saveInt static method

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

Implementation

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