getAsList<E> method
List<E> ?
getAsList<E>(
- K key, {
- List<
E> ? def, - TypeElementParser<
E> ? elementParser, - List<
E> ? defaultValue, - bool ignoreCase = false,
Gets a key value parsing as List.
defis the default value if the value is invalid.elementParseris the parser to use for each element in the List.
Implementation
List<E>? getAsList<E>(
K key, {
List<E>? def,
TypeElementParser<E>? elementParser,
List<E>? defaultValue,
bool ignoreCase = false,
}) => getParsed(
key,
(l) => TypeParser.parseList<E>(l, def: def, elementParser: elementParser),
defaultValue: defaultValue,
ignoreCase: ignoreCase,
);