getIntValues method

Future<int> getIntValues(
  1. String key
)

Implementation

Future<int> getIntValues(String key) async {
  var prefs = await SharedPreferences.getInstance();
  var intValue = prefs.getInt(key) ?? 0;
  return intValue;
}