plusString method

  1. @useResult
Parser<String> plusString([
  1. String? message
])

Returns a parser that accepts the receiver one or more times. The resulting parser returns the consumed input string.

This implementation is equivalent to PossessiveRepeatingParserExtension.plus, but particularly performant when used on character parsers. Instead of a List it returns the parsed sub-String.

For example, the parser letter().plusString() accepts any sequence of letters and returns the string of the parsed letters.

Implementation

@useResult
Parser<String> plusString([String? message]) =>
    repeatString(1, unbounded, message);