RouteBase.withPathSegment constructor
RouteBase.withPathSegment({
- required PathSegment segment,
- Component? child,
- Component? root,
- 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();