RixaPage constructor
RixaPage({
- required String name,
- String? route,
- FutureOr<
String> description(- RouteProperties properties
- Widget builder(
- BuildContext context,
- RouteProperties properties
- FutureOr<
String?> redirect(- RouteProperties properties
- FutureOr<
String?> redirectedChild(- RouteProperties properties
- Map<
String, String> ? params, - PageTransition? pageTransition,
- String? title,
- List<
PageBase> children = const <PageBase>[], - ScreenModeLimits? screenModeLimits,
- PageFonts? fonts,
Implementation
RixaPage({
required String name,
GlobalKey<NavigatorState>? parentNavigatorKey,
String? route,
FutureOr<String> Function(RouteProperties properties)? description,
Widget Function(BuildContext context, RouteProperties properties)? builder,
FutureOr<String?> Function(RouteProperties properties)? redirect,
FutureOr<String?> Function(RouteProperties properties)? redirectedChild,
Map<String, String>? params,
PageTransition? pageTransition,
String? title,
super.children,
super.screenModeLimits,
super.fonts,
}) : _name = name,
_builder = builder,
_redirect = redirect,
_description = description,
_parentNavigatorKey = parentNavigatorKey,
_pageTransition = pageTransition,
_redirectedChild = redirectedChild,
_params = params,
_title = title,
_route = route ?? "/$name" {
for (var child in children) {
child.setParent = this;
}
}