RequestHeaders constructor Null safety
- {required List<
String> namesAndValues}
Creates a RequestHeaders objects from a list of strings.
The even indexes contain the name of the header and the odd indexes the value. The total size of the varargs must be an even number.
Params:
- namesAndValues: the names and values of the headers.
Implementation
factory RequestHeaders({
required List<String> namesAndValues,
}) {
return RequestHeadersImpl(namesAndValues: namesAndValues);
}