APISecurityScheme.oauth2(APISecuritySchemeFlow oauthFlow, { String authorizationURL, String tokenURL, List<APISecurityScope> scopes: const [] })

Source

APISecurityScheme.oauth2(this.oauthFlow,
    {this.authorizationURL, this.tokenURL, this.scopes: const []}) {
  type = "oauth2";
}