code: public final void clear() {
          items.clear();
          iconCount = 0;
          dividerCount = 0;
  
          if (rawItems != null) {
              rawItems.clear();
          }
  
          notifyOnDataSetChanged();
      }
docs: Removes all items from the adapter.