setInt static method
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;
}