controller property
A CustomCarouselScrollController instance that can be used to control the position to which this scroll view is scrolled. If none is provided, a new CustomCarouselScrollController is implicitly created.
CustomCarouselScrollController offers a number of capabilities that are specific to CustomCarousel widgets, such as:
- the ability to read the current selected item index via CustomCarouselScrollController.selectedItem
- providing item-oriented methods, such as CustomCarouselScrollController.animateToItem and CustomCarouselScrollController.jumpToItem
- logic to support loop functionality
- smart defaults for
duration
andcurve
parameters of CustomCarouselScrollController.animateTo - support for CustomCarouselScrollPhysics
See also:
Implementation
final CustomCarouselScrollController? controller;