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?
Returns the first value for key, if present.
getMultiValue(K key, {bool ignoreCase = false}) List<String>?
Returns the first values for key.
setMultiValue(K key, String value, {bool ignoreCase = false}) → void
Sets the value for key. If the value already exists, ensures that is a List<String>.