set method

ParseResult set(
  1. String fullText, {
  2. bool complete = false,
})

Sets the full text so far; restarts when it is not an extension.

Implementation

ParseResult set(String fullText, {bool complete = false}) {
  if (fullText.length < _buf.length || !fullText.startsWith(_buf)) reset();
  _buf += fullText.substring(_buf.length);
  return getResult(complete: complete);
}