onPageChanged property
Called whenever the page in the center of the viewport changes.
Implementation
final Function(int index)? onPageChanged;
Called whenever the page in the center of the viewport changes.
final Function(int index)? onPageChanged;