void clear()

Clear the entire rendering surface.

Source

void clear() {
  var updateBatch = new BitmapDataUpdateBatch(this);
  updateBatch.clear();
  updateBatch.update();
}