putInt static method

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

Implementation

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