saveInt static method

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

Saves an int value to storage.

Implementation

static Future<bool> saveInt(String key, int value) async {
  return await _prefs?.setInt(key, value) ?? false;
}