isRequired property
bool?
get
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 =>
// ignore: avoid_bool_literals_in_conditional_expressions
location == APIParameterLocation.path ? true : _required;
set
isRequired
(bool? f)
Implementation
set isRequired(bool? f) {
_required = f;
}