clearItems method

bool clearItems()

Implementation

bool clearItems(){
  if(items.isNullOrEmpty()) return false;
  final cloneList = [];
  cloneList.addAll(items);
  listKey.currentState?.reassemble();
  sliverListKey.currentState?.reassemble();
  items.clear();
  return true;
}