setInt abstract method

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

Saves an integer value to persistent storage in the background.

If value is null, this is equivalent to calling remove() on the key.

Implementation

Future<bool> setInt(String key, int value);