RouteNode.fromRoute constructor

RouteNode.fromRoute({
  1. required YxRoute route,
  2. Map<String, String> arguments = const {},
  3. Map<String, Object?> extra = const {},
  4. List<RouteNode> children = const [],
})

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,
    );