onPageChanged property

void Function(int index, double size)? onPageChanged
final

Called whenever the snap point changes. Returns both the new index and the size of the current item.

Implementation

final void Function(int index, double size)? onPageChanged;