RouteSegment.direct constructor

RouteSegment.direct({
  1. String? literal,
  2. String? variableName,
  3. String? expression,
  4. bool matchesAnything = false,
})

Implementation

RouteSegment.direct({
  this.literal,
  this.variableName,
  String? expression,
  bool matchesAnything = false,
}) {
  isRemainingMatcher = matchesAnything;
  if (expression != null) {
    matcher = RegExp(expression);
  }
}