newline function

  1. @useResult
Parser<String> newline({
  1. String message = 'newline expected',
})

Returns a parser that detects newlines platform independently.

For example, the parser newline() accepts \n, \r, and \r\n.

Implementation

@useResult
Parser<String> newline({String message = 'newline expected'}) =>
    NewlineParser(message);