addItemsClear method

  1. @override
void addItemsClear(
  1. List<E?> items
)
override

清除并新增

Implementation

@override
void addItemsClear(List<E?> items) {
  _dataList.clear();
  _dataList.addAll(items);
  notifyDataSetChanged();
}