RouteNode.fromRoute constructor
RouteNode.fromRoute({})
Creates an immutable node for route with optional arguments, extra
data and children.
Implementation
factory RouteNode.fromRoute({
required YxRoute route,
Map<String, String> arguments = const {},
Map<String, Object?> extra = const {},
List<RouteNode> children = const [],
}) =>
ImmutableRouteNode(
route: route,
arguments: arguments,
extra: extra,
children: children,
);