ActivityRoute constructor
ActivityRoute({
- required String path,
- String? name,
- Widget builder()?,
- Page pageBuilder()?,
- ActivityRedirect? redirect,
- List<
ActivityRouteBase> routes = const [], - FutureOr<
bool> onExit()?, - bool caseSensitive = true,
Implementation
ActivityRoute({
required this.path,
this.name,
this.builder,
this.pageBuilder,
super.redirect,
List<ActivityRouteBase> routes = const [],
super.parentNavigatorKey,
this.onExit,
this.caseSensitive = true,
}) : super(routes: routes) {
if (builder == null && pageBuilder == null && redirect == null) {
throw ArgumentError('A route needs a builder, pageBuilder or redirect');
}
}