selectedPageIndex property Null safety

int selectedPageIndex

An index of the currently selected page.

Implementation

int get selectedPageIndex => _selectedPageIndex;
void selectedPageIndex=(int newSelectedPageIndex)

Implementation

set selectedPageIndex(int newSelectedPageIndex) {
  if (_selectedPageIndex == newSelectedPageIndex) {
    return;
  }
  _selectedPageIndex = newSelectedPageIndex;
  _notifyDataPagerListeners('selectedPageIndex');
}