setList method

dynamic setList(
  1. String key,
  2. List<String>? value
)

Set the List

Implementation

setList(String key, List<String>? value) {
  if (value == null) {
    return _prefs!.remove(key);
  }
  return _prefs!.setStringList(key, value);
}