eatChar method Null safety

String eatChar()

Implementation

String eatChar() {
  if (_seek >= _data.length) {
    return '';
  }

  _seek += 1;
  return head();
}