Security constructor

const Security({
  1. String? name,
  2. @Default([]) List<String> scopes,
})

Implementation

const factory Security({
  /// Each name must correspond to a security scheme which is declared
  /// in the [Components.securitySchemes] list
  String? name,

  /// List of scopes required to access the API, if any.
  @Default([]) List<String> scopes,
}) = _Security;