addSecurityRequirement method
Adds requirement
to security.
If security is null, invoking this method will set it to a list containing requirement
.
Otherwise, requirement
is added to security.
Implementation
void addSecurityRequirement(APISecurityRequirement requirement) {
security ??= [];
security!.add(requirement);
}