MapGetterExtension<K, V> extension

Extension for Map to get key values.

on

Methods

get(K key, {V? defaultValue, bool ignoreCase = false}) → V?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value.
getAs<T>(K key, {T? defaultValue, bool ignoreCase = false}) → T?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value parsing to T type.
getAsBool(K key, {bool? defaultValue, bool ignoreCase = false}) bool?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value parsing as bool.
getAsDouble(K key, {double? defaultValue, bool ignoreCase = false}) double?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value parsing as double.
getAsInt(K key, {int? defaultValue, bool ignoreCase = false}) int?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value parsing as int.
getAsList<E>(K key, {List<E>? def, TypeElementParser<E>? elementParser, List<E>? defaultValue, bool ignoreCase = false}) List<E>?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value parsing as List.
getAsMap(K key, {Map<K, V>? def, TypeElementParser<K>? keyParser, TypeElementParser<V>? valueParser, Map<K, V>? defaultValue, bool ignoreCase = false}) Map<K, V>?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value parsing as Map.
getAsNum(K key, {num? defaultValue, bool ignoreCase = false}) num?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value parsing to num type.
getAsSet<E>(K key, {Set<E>? def, TypeElementParser<E>? elementParser, Set<E>? defaultValue, bool ignoreCase = false}) Set<E>?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value parsing as Set.
getAsString(K key, {String? defaultValue, bool ignoreCase = false}) String?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value parsing as String.
getIgnoreCase(K key, {V? defaultValue}) → V?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value ignoring case.
getMultiKeyAsBool(List<K> keys, {bool? defaultValue, bool ignoreCase = false}) bool?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets the value of the first matching keys, parsing as bool.
getMultiKeyAsDouble(List<K> keys, {double? defaultValue, bool ignoreCase = false}) double?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets the value of the first matching keys, parsing as double.
getMultiKeyAsInt(List<K> keys, {int? defaultValue, bool ignoreCase = false}) int?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets the value of the first matching keys, parsing as int.
getMultiKeyAsNum(List<K> keys, {num? defaultValue, bool ignoreCase = false}) num?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets the value of the first matching keys, parsing as num.
getMultiKeyAsString(List<K> keys, {String? defaultValue, bool ignoreCase = false}) String?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets the value of the first matching keys, parsing as num.
getMultiKeyParsed<T>(List<K> keys, TypeElementParser<T>? parser, {T? defaultValue, bool ignoreCase = false}) → T?

Available on Map<K, V>, provided by the MapGetterExtension extension

Same as getParsed but accepts multiple keys.
getParsed<T>(K key, TypeElementParser<T>? parser, {T? defaultValue, bool ignoreCase = false}) → T?

Available on Map<K, V>, provided by the MapGetterExtension extension

Gets a key value parsing with parser.
matchKey(K key) → K?

Available on Map<K, V>, provided by the MapGetterExtension extension

Returns the existing key that matches key.
matchKeyIgnoreCase(K key) → K?

Available on Map<K, V>, provided by the MapGetterExtension extension

Returns the existing key that matches key as case-insensitive.