getAsString method

String? getAsString(
  1. K key, {
  2. String? defaultValue,
  3. bool ignoreCase = false,
})

Gets a key value parsing as String.

  • def is the default value if the value is invalid.

Implementation

String? getAsString(K key, {String? defaultValue, bool ignoreCase = false}) =>
    getParsed(key, TypeParser.parseString,
        defaultValue: defaultValue, ignoreCase: ignoreCase);