setIntList method
Implementation
Future<bool> setIntList(String key, List<int> intList, {bool removeIfEmpty = true})
async
{
if (intList.isEmpty && removeIfEmpty)
return _sharedPreferences.remove(key);
final List<String> stringList = <String>[];
for (final int i in intList)
stringList.add(i.toString());
return _sharedPreferences.setStringList(key, stringList);
}