copyWith method

ResourceRoute copyWith({
  1. ResourceKindFlag? kinds,
  2. UrlMatchFlag? flags,
  3. String? url,
})

A copy of this value with the given members replaced.

Implementation

ResourceRoute copyWith({
  ResourceKindFlag? kinds,
  UrlMatchFlag? flags,
  String? url,
}) => ResourceRoute(
  kinds: kinds ?? this.kinds,
  flags: flags ?? this.flags,
  url: url ?? this.url,
);