expectDone method

void expectDone ()

If the string has not been fully consumed, this throws a FormatException.

Implementation

void expectDone() {
  if (isDone) return;
  _fail("no more input");
}