setInt static method

Future setInt(
  1. String key,
  2. int value
)

Saves an integer value for key.

Implementation

static Future setInt(String key, int value) async {
  await _prefs.setInt(key, value);
}