RoutePath constructor

RoutePath({
  1. String path = '/',
  2. String pathType = 'prefix',
  3. bool stripPrefix = false,
  4. Object? targetPort,
  5. 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');