updateIntValue method

Future<void> updateIntValue(
  1. String key,
  2. int newValue
)

Implementation

Future<void> updateIntValue(String key, int newValue) async {
  final prefs = await _prefs;
  await prefs.setInt(key, newValue);
}