copyWith method

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

Implementation

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