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