onPageChanged property

dynamic Function(int index, CarouselPageChangedReason reason)? onPageChanged
final

Called whenever the page in the center of the viewport changes.

Implementation

final Function(int index, CarouselPageChangedReason reason)? onPageChanged;