isRequired property Null safety
Determines whether this parameter is mandatory.
If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.
Implementation
bool? get isRequired =>
location == APIParameterLocation.path ? true : _required;
Implementation
set isRequired(bool? f) {
_required = f;
}