Called whenever the snap point changes. Returns both the new index and the size of the current item.
final void Function(int index, double size)? onPageChanged;