RouteBase constructor
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);
}