setIntList method
Implementation
void setIntList(String key, List<int> intList, {bool removeIfEmpty = true})
{
if (intList.length == 0 && removeIfEmpty)
_sharedPreferences.remove(key);
else
{
var stringList = List<String>.empty();
for (int i in intList)
stringList.add(i.toString());
_sharedPreferences.setStringList(key, stringList);
}
}