compileNext method

  1. @override
Parser<RouteResult> compileNext (
  1. Parser<RouteResult> p,
  2. bool isLast
)
override

Implementation

@override
Parser<RouteResult> compileNext(Parser<RouteResult> p, bool isLast) {
  return p.then(compile(isLast)).map((r) {
    var items = r.value.cast<RouteResult>();
    var a = items[0], b = items[1];
    return a
      ..addAll(b?.params ?? {})
      .._setTail(b?.tail);
  });
}