RouteBuilder<T extends RouteArguments> constructor
RouteBuilder<T extends RouteArguments> ({
- required PathsBuilder getBuilder(),
- required RegExp pattern,
- required T parse(),
- required String path(
- T
- ViewModelWidget<
ViewModel> buildView()?, - Future<
Widget> build(- BuildContext,
- T
- required Future<
RoutePath< rewrite(RouteArguments> ?>- BuildContext,
- T
- AccessMode accessMode = AccessMode.public,
- RoutePath<
RouteArguments> previousPath(- T
- List<
NavigationItem> tabItems()?, - bool isPublicRoute = false,
Implementation
RouteBuilder({
required this.getBuilder,
required this.pattern,
required this.parse,
required this.path,
this.buildView,
this.build,
required this.rewrite,
this.accessMode = AccessMode.public,
this.previousPath,
this.menuItems,
this.tabItems,
this.isPublicRoute = false,
}) : assert(((build != null && buildView == null) ||
(buildView != null && build == null)));