setInt method

Future<bool> setInt(
  1. String dataKey,
  2. int? dataValue, {
  3. bool notify = true,
})

Set the integer value for the specified key in SharedPreferences.

Implementation

Future<bool> setInt(String dataKey, int? dataValue,
    {bool notify = true}) async {
  assert(_key != null);
  return _decorator.setInt(dataKey, dataValue, notify: notify);
}