operator [] method
The values for the header named name
.
Returns null if there is no header with the provided name, otherwise returns a new list containing the current values. Not that modifying the list does not change the header.
Implementation
@override
List<String>? operator [](String name) {
return data.containsKey(name) ? [data[name]!] : null;
}