NamedRoute constructor
NamedRoute({
- required Widget screenBuilder(
- BuildContext context
- required RouteName name,
- Page pageBuilder(
- BuildContext context,
- Widget child
- List<
HyperRoute< children = const [],RouteValue> >
Implementation
NamedRoute({
required Widget Function(BuildContext context) screenBuilder,
required this.name,
super.pageBuilder,
super.children,
}) : super(
screenBuilder: (context, value) => screenBuilder(context),
defaultValue: name,
);