swap method

  1. @override
void swap(
  1. int current,
  2. int next
)
override

交换下标位置

Implementation

@override
void swap(int current, int next) {
  var tmp = _dataList[current];
  _dataList[current] = _dataList[next];
  _dataList[next] = tmp;
  notifyDataSetChanged();
}