setIntAsync static method
Sets an integer value and returns a Future that completes when the write is done.
Implementation
static Future<bool> setIntAsync(String key, int value) async {
_ensureInitialized();
return await _prefs!.setInt(key, value);
}