MapMultiValueExtension<K> extension

Extension for a multi-value Map: keys as String and values as String or List<String>.

on

Methods

getFirstValue(K key, {bool ignoreCase = false}) String?

Available on Map<K, Object>, provided by the MapMultiValueExtension extension

Returns the first value for key, if present.
getMultiValue(K key, {bool ignoreCase = false}) List<String>?

Available on Map<K, Object>, provided by the MapMultiValueExtension extension

Returns the first values for key.
setMultiValue(K key, String value, {bool ignoreCase = false}) → void

Available on Map<K, Object>, provided by the MapMultiValueExtension extension

Sets the value for key. If the value already exists, ensures that is a List<String>.