hasNext method Null safety

bool hasNext ()

test if has next symbol

Implementation

bool hasNext() {
  return has(1);
}