Carousel.custom constructor
Carousel.custom({
- Key? key,
- Axis scrollDirection = _defaultScrollDirection,
- bool reverse = _defaultReverse,
- CarouselController? controller,
- ScrollPhysics? physics,
- bool pageSnapping = _defaultPageSnapping,
- ValueChanged<
int> ? onPageChanged, - ValueChanged<
int> ? onIndexChanged, - required CarouselChildDelegate childrenDelegate,
- CarouselTransitionBuilder? transitionBuilder,
Implementation
Carousel.custom({
Key? key,
this.scrollDirection = _defaultScrollDirection,
this.reverse = _defaultReverse,
this.controller,
this.physics,
this.pageSnapping = _defaultPageSnapping,
this.onPageChanged,
this.onIndexChanged,
required this.childrenDelegate,
CarouselTransitionBuilder? transitionBuilder,
}) : transitionBuilder = transitionBuilder ?? _defaultTransitionBuilder,
super(key: key);