isRequired property Null safety

bool? isRequired

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;
void isRequired=(bool? f)

Implementation

set isRequired(bool? f) {
  _required = f;
}