RoutePath constructor
RoutePath({
- String path = '/',
- String pathType = 'prefix',
- bool stripPrefix = false,
- Object? targetPort,
- RouteContentSpec? targetContent,
Implementation
RoutePath({this.path = '/', this.pathType = 'prefix', this.stripPrefix = false, this.targetPort, this.targetContent})
: assert((targetPort == null) != (targetContent == null), 'RoutePath requires exactly one target'),
assert(targetContent == null || !stripPrefix, 'content routes always strip the matched route path');