putInt static method

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

Implementation

static Future<bool> putInt(String key, int? value) =>
    value == null ? remove(key) : sharedPreferences.setInt(key, value);