setInt abstract method
Saves the int value in memory with the assigned key.
Use ttl to determine how long should the value remain in memory.
If ttl is null, the value will permanently be
stored in the device memory with the assigned key.
Implementation
Future<void> setInt(
String key,
int? value, {
Duration? ttl,
});