copyWith method

HttpHeaderRule copyWith({
  1. ResourceKindFlag? kinds,
  2. UrlMatchFlag? flags,
  3. String? url,
  4. List<HttpHeader>? headers,
})

A copy of this value with the given members replaced.

Implementation

HttpHeaderRule copyWith({
  ResourceKindFlag? kinds,
  UrlMatchFlag? flags,
  String? url,
  List<HttpHeader>? headers,
}) => HttpHeaderRule(
  kinds: kinds ?? this.kinds,
  flags: flags ?? this.flags,
  url: url ?? this.url,
  headers: headers ?? this.headers,
);