setIntAsync static method

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

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);
}