setInt static method
Saves an integer value
to persistent storage under the specified app group.
If value
is null, this is equivalent to calling remove() on the key
.
Implementation
static Future<void> setInt(String key, int? value) async {
await _setValue('Int', key, value);
}