currentPage property

int currentPage

获取当前页面的素银

Implementation

int get currentPage => _currentPage;
void currentPage=(int page)

轮播跳转到指定的页面

  • 当由于用户滑动页面引起的改变时调用此方法, 此时不需要再次滚动(因为已经由用户滚动过了)

Implementation

set currentPage(int page) {
  _currentPage = page;
  notifyListeners();
}