onPageChange property

void Function(double index, double size)? onPageChange
final

Called whenever the position changes (scrolling). Returns both the current item and the size of the current item.

Implementation

final void Function(double index, double size)? onPageChange;