onPageChange property

dynamic Function(int)? onPageChange
final

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;