copyWith method

RouteInfo copyWith({
  1. Route? route,
  2. Optional<RouteBuildOptions?>? routeBuildOptions,
  3. bool? external_,
})

Implementation

RouteInfo copyWith({
  Route? route,
  Optional<RouteBuildOptions?>? routeBuildOptions,
  bool? external_
}) {
  return RouteInfo(
    route: route ?? this.route,
    routeBuildOptions: routeBuildOptions != null ? routeBuildOptions.value : this.routeBuildOptions,
    external_: external_ ?? this.external_
  );
}