OpenApiInfo constructor
const
OpenApiInfo({
- required String version,
- required String title,
- String? description,
- String? termsOfService,
- OpenApiContact? contact,
- OpenApiLicence? licence,
Creates API metadata for OpenAPI documentation.
Parameters:
versionThe version of the API (required).titleThe name of the API (required).descriptionOptional description of the API.termsOfServiceURL to the API's terms of service (optional).contactContact information for the API maintainer (optional).licenceLicensing information for the API (optional).
Implementation
const OpenApiInfo({
required this.version,
required this.title,
this.description,
this.termsOfService,
this.contact,
this.licence,
});