any function Null safety

Parser<String> any(
  1. [String message = 'input expected']
)

Returns a parser that accepts any input element.

For example, any() succeeds and consumes any given letter. It only fails for an empty input.

Implementation

Parser<String> any([String message = 'input expected']) => AnyParser(message);