putInt static method

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

put int. 存储sp中key的int值

Implementation

static Future<bool>? putInt(String key, int value) {
  if (_prefs == null) {
    return null;
  }
  return _prefs?.setInt(key, value);
}