clear method

dynamic clear()

Implementation

clear() {
  items = [];
  currentItem = null;
  update();
}