addParameter method
Adds parameter
to parameters.
If parameters is null, invoking this method will set it to a list containing parameter
.
Otherwise, parameter
is added to parameters.
Implementation
void addParameter(APIParameter parameter) {
(parameters ??= []).add(parameter);
}