APIParameter.header constructor Null safety

APIParameter.header(
  1. String? name,
  2. {String? description,
  3. APISchemaObject? schema,
  4. Map<String, APIMediaType>? content,
  5. String? style,
  6. bool? required,
  7. bool? deprecated,
  8. bool? allowEmptyValue,
  9. bool? explode,
  10. bool? allowReserved}
)

Implementation

APIParameter.header(this.name,
    {this.description,
    this.schema,
    this.content,
    this.style,
    bool? required,
    bool? deprecated,
    bool? allowEmptyValue,
    bool? explode,
    bool? allowReserved}) {
  this.isRequired = required!;
  this.isDeprecated = deprecated!;
  this.allowEmptyValue = allowEmptyValue!;
  this.allowReserved = allowReserved!;
  this.explode = explode!;
  this.location = APIParameterLocation.header;
}