onPageChange property
This function is called when the user switches between pages. The received parameter indicates the selected index, starting from 0.
Implementation
final Function(int)? onPageChange;
This function is called when the user switches between pages. The received parameter indicates the selected index, starting from 0.
final Function(int)? onPageChange;