RouteBase.withPathSegment constructor

RouteBase.withPathSegment({
  1. required PathSegment segment,
  2. Component? child,
  3. Component? root,
  4. bool? handleUnknownAsRoot,
})

For argument segments use segment with "{segment}" . child, root and unknown

Implementation

RouteBase.withPathSegment(
    {required PathSegment segment,
    Component? child,
    Component? root,
    bool? handleUnknownAsRoot})
    : _segment = segment,
      _root = root,
      _child = child,
      handleUnknownAsRoot = handleUnknownAsRoot ?? false,
      assert(child != null || root != null, "Child or Root must be defined"),
      super();