setInt abstract method
Saves an int value with the given key.
This method stores an integer value in the storage, associating it with the specified key. If a value already exists for this key, it will be replaced.
Parameters:
key- The unique identifier for the integer value.value- The integer value to store.
Returns a Future that completes when the integer has been successfully stored.
Throws:
- ArgumentError if the key is invalid.
Implementation
Future<void> setInt(String key, int value);