refreshData method

Future<Null> refreshData()

Implementation

Future<Null> refreshData() async {
  setState(() {
    //重新构建列表
    _viewStatus = _ViewStatus.refresh;
  });
  _currentPage = 1;
  _hasNextPage = true;
  _isScroll = false;
  _dataList.clear();
  widget.onDataRequest(_currentPage, widget.pageSize, this);
}