onPageChanged property
Called whenever the page in the center of the viewport changes.
Corresponds to Material's PageView's onPageChanged parameter: https://api.flutter.dev/flutter/widgets/PageView-class.html
Implementation
final ValueChanged<int>? onPageChanged;