RouteBase constructor

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

For argument segments use segment with "{segment}" . child, root and unknown is parent unknown in default for custom PathSegment to use constructor PathRouter.withPathSegment

Implementation

factory RouteBase(String segment,
    {Component? child, Component? root, bool? handleUnknownAsRoot}) {
  return RouteBase.withPathSegment(
      segment: PathSegment(segment),
      child: child,
      root: root,
      handleUnknownAsRoot: handleUnknownAsRoot);
}