getList method
returns the value corresponding with key
as nullable List<String>
Implementation
List<String> getList(String key, [List<String>? defaultValue]) {
var val = _params[key] ?? defaultValue;
if (val == null) {
throw MissingRequiredParameterError('Failed to parse [List<String>] $key value from ${_params[key]}');
}
if (val is List) {
return val.map((e) => e.toString()).toList();
} else {
return [val.toString()];
}
}