accept method

bool accept(
  1. String input
)

Tests if the input can be successfully parsed.

For example, letter().plus().accept('abc') returns true, and letter().plus().accept('123') returns false.

Implementation

bool accept(String input) => fastParseOn(input, 0) >= 0;