castList<S> method

  1. @useResult
Parser<List<S>> castList<S>()

Returns a parser that casts itself to Parser<List<R>>. Assumes this parser to be of type Parser<List>.

Implementation

@useResult
Parser<List<S>> castList<S>() => CastListParser<R, S>(this);