copyWith method

RouteTreeResult copyWith({
  1. JetPage? route,
  2. MatchResult? matchResult,
})

Implementation

RouteTreeResult copyWith({
  JetPage? route,
  MatchResult? matchResult,
}) {
  return RouteTreeResult(
    route: route ?? this.route,
    matchResult: matchResult ?? this.matchResult,
  );
}