copyWith method

SecurityRequirement copyWith({
  1. String? name,
  2. List<String>? scopes,
})

Returns a copy of this instance with updated fields.

Implementation

SecurityRequirement copyWith({String? name, List<String>? scopes}) {
  return SecurityRequirement(
    name: name ?? this.name,
    scopes: scopes ?? this.scopes,
  );
}