setLazyCount method

Future<void> setLazyCount(
  1. int value,
  2. String suffixTag, {
  3. required bool notify,
})

Implementation

Future<void> setLazyCount(
  int value,
  String suffixTag, {
  required bool notify,
}) async {
  final int? oldValue = getLazyCount(suffixTag);
  if (value == oldValue) {
    return;
  }
  await _sharedPreferences.setInt(_getLazyCountTag(suffixTag), value);
  if (notify) {
    notifyListeners();
  }
}