setStringList method
Saves a list of strings value
to the cache and platform.
Throws an ArgumentError if key
is not in this instance's filter.
Implementation
Future<void> setStringList(String key, List<String> value) async {
if (!_isValidKey(key)) {
throw ArgumentError(
'$key is not included in the PreferencesFilter allowlist');
}
_cache[key] = value;
return _platformMethods.setStringList(key, value);
}