MapGetterExtension<K, V> extension
Extension for Map to get key values.
- on
-
- Map<
K, V>
- Map<
Methods
-
get(
K key, {V? defaultValue, bool ignoreCase = false}) → V? -
Gets a
key
value. -
getAs<
T> (K key, {T? defaultValue, bool ignoreCase = false}) → T? -
Gets a
key
value parsing toT
type. -
getAsBool(
K key, {bool? defaultValue, bool ignoreCase = false}) → bool? -
Gets a
key
value parsing as bool. -
getAsDouble(
K key, {double? defaultValue, bool ignoreCase = false}) → double? -
Gets a
key
value parsing as double. -
getAsInt(
K key, {int? defaultValue, bool ignoreCase = false}) → int? -
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> ? -
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> ? -
Gets a
key
value parsing as Map. -
getAsNum(
K key, {num? defaultValue, bool ignoreCase = false}) → num? -
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> ? -
Gets a
key
value parsing as Set. -
getAsString(
K key, {String? defaultValue, bool ignoreCase = false}) → String? -
Gets a
key
value parsing as String. -
getIgnoreCase(
K key, {V? defaultValue}) → V? -
Gets a
key
value ignoring case. -
getMultiKeyAsBool(
List< K> keys, {bool? defaultValue, bool ignoreCase = false}) → bool? -
Gets the value of the first matching
keys
, parsing as bool. -
getMultiKeyAsDouble(
List< K> keys, {double? defaultValue, bool ignoreCase = false}) → double? -
Gets the value of the first matching
keys
, parsing as double. -
getMultiKeyAsInt(
List< K> keys, {int? defaultValue, bool ignoreCase = false}) → int? -
Gets the value of the first matching
keys
, parsing as int. -
getMultiKeyAsNum(
List< K> keys, {num? defaultValue, bool ignoreCase = false}) → num? -
Gets the value of the first matching
keys
, parsing as num. -
getMultiKeyAsString(
List< K> keys, {String? defaultValue, bool ignoreCase = false}) → String? -
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? -
Same as getParsed but accepts multiple
keys
. -
getParsed<
T> (K key, TypeElementParser< T> ? parser, {T? defaultValue, bool ignoreCase = false}) → T? -
Gets a
key
value parsing withparser
. -
matchKey(
K key) → K? -
Returns the existing key that matches
key
. -
matchKeyIgnoreCase(
K key) → K? -
Returns the existing key that matches
key
as case-insensitive.