RoutePath constructor
const
RoutePath(})
Reflect to GoRoute class, using builder for building page of this route
Implementation
const RoutePath(
this.path, {
this.pageType,
this.builder,
this.pageBuilder,
//
this.name,
this.parentNavigatorKey,
/// GoRouterRedirect
///
/// FutureOr<String?> Function(BuildContext context, GoRouterState state)
this.redirect,
/// ExitCallback
///
/// FutureOr<bool> Function(BuildContext context)
this.onExit,
this.pathArguments,
this.arguments,
this.routes,
this.extra = false,
}) : assert(
(pageType != null ? 1 : 0) + (builder != null ? 1 : 0) + (pageBuilder != null ? 1 : 0) ==
1,
'use either [pageType], [builder] or [pageBuilder].',
);