copyWith method
GoRoute
copyWith({
- String? path,
- String? name,
- Widget builder(
- BuildContext,
- GoRouterState
- String? redirect(
- BuildContext,
- GoRouterState
- List<
RouteBase> ? routes,
Implementation
GoRoute copyWith({
String? path,
String? name,
Widget Function(BuildContext, GoRouterState)? builder,
String? Function(BuildContext, GoRouterState)? redirect,
List<RouteBase>? routes,
}) {
return GoRoute(
path: path ?? this.path,
name: name ?? this.name,
builder: builder ?? this.builder,
redirect: redirect ?? this.redirect,
routes: routes ?? this.routes,
);
}