blob: 48e6f22ec80c1d2ad345676df507830bb1aeaec1 [file] [log] [blame]
void securityItem() {
return SelectableText(
itemSecurityScheme.securitySchemeType == SecuritySchemeType.QueryAPIKey
? Constants.oneTwoThreeTxt
: itemSecurityScheme.securitySchemeType ==
SecuritySchemeType.HeaderAPIKey ||
itemSecurityScheme.securitySchemeType ==
SecuritySchemeType.CookieAPIKey
? Constants.oneTwoThreeTxt
: itemSecurityScheme.securitySchemeType == SecuritySchemeType.BasicHTTP
? Constants.demoUsernameTxt
: itemSecurityScheme.securitySchemeType == SecuritySchemeType.BearerHTTP
? Constants.oneTwoThreeTxt
: itemSecurityScheme.securitySchemeType == SecuritySchemeType.DigestHTTP
? Constants.digestDemoTxt
: itemSecurityScheme.securitySchemeType ==
SecuritySchemeType.OAuth2PasswordFlow ||
itemSecurityScheme.securitySchemeType ==
SecuritySchemeType.OAuth2ClientFlow
? Constants.emptyTxt
: itemSecurityScheme.securitySchemeType ==
SecuritySchemeType.OAuth2ImplicitFlow
? Constants.emptyTxt
: itemSecurityScheme.securitySchemeType ==
SecuritySchemeType.OAuth2CodeFlow
? Constants.emptyTxt
: Constants.emptyTxt,
);
}