SwaggerSecurity constructor
const
SwaggerSecurity({})
Implementation
const SwaggerSecurity({
required this.name,
this.position = 'header',
required this.type,
this.scheme,
this.bearerFormat,
this.description,
}) : assert(
position == 'query' || position == 'header' || position == 'cookie',
'position should be: "query" | "header" | "cookie"',
),
assert(
type == 'http' ||
type == 'apiKey' ||
type == 'oauth2' ||
type == 'openIdConnect',
'type should be: "http" | "apiKey" | "oauth2" | "openIdConnect"',
),
assert(
scheme == null || scheme == 'basic' || scheme == 'bearer',
'scheme should be: null | "basic" | "bearer"',
);