CarouselPageChangedCallback typedef
CarouselPageChangedCallback =
void Function(int index)
Reports the item now in the centre of the viewport, by index.
Implementation
typedef CarouselPageChangedCallback = void Function(int index);