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.
def
is the default value if the value is invalid.elementParser
is 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);