accept method

bool accept(
  1. String input, {
  2. int start = 0,
})

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, {int start = 0}) => fastParseOn(input, start) >= 0;