setInt static method

Future<bool> setInt(
  1. String key,
  2. int value, {
  3. bool storageOnly = false,
})

Set the EzConfig key to value with type int Defaults to both the live EzConfig.prefs and stored EzConfig.preferences Optionally set storageOnly to true to only update EzConfig.preferences

Implementation

static Future<bool> setInt(
  String key,
  int value, {
  bool storageOnly = false,
}) async {
  final bool result = await _instance!.preferences.setInt(key, value);
  if (result && !storageOnly) _instance!.prefs[key] = value;
  return result;
}