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