NamedRoute constructor

NamedRoute({
  1. required Widget screenBuilder(
    1. BuildContext context
    ),
  2. required RouteName name,
  3. Page pageBuilder(
    1. BuildContext context,
    2. Widget child
    )?,
  4. List<HyperRoute<RouteValue>> children = const [],
})

Implementation

NamedRoute({
  required Widget Function(BuildContext context) screenBuilder,
  required this.name,
  super.pageBuilder,
  super.children,
}) : super(
        screenBuilder: (context, value) => screenBuilder(context),
        defaultValue: name,
      );