setInt static method

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

Implementation

static Future<bool> setInt(String key, int value) async {
  SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
  return await sharedPreferences.setInt(key, value);
}