getAsSet<E> method

Set<E>? getAsSet<E>(
  1. K key, {
  2. Set<E>? def,
  3. TypeElementParser<E>? elementParser,
  4. Set<E>? defaultValue,
  5. 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,
);