clear method Null safety

void clear()

Implementation

void clear() {
  final maxMem = _memory.totalNybbles;
  for (int addr = _memory.programNybbles; addr < maxMem; addr++) {
    _memory.storage.setUint8(addr, 0);
  }
  resetI();
}