setInt method

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

Sets a int value and notifies all active listeners that there's a new value for the key.

Returns true if a value was successfully set for the key, otherwise returns false.

Implementation

Future<bool> setInt(String key, int value) {
  return setCustomValue(key, value, adapter: IntAdapter.instance);
}