build method
Implementation
@override
Widget build(BuildContext context) {
return HubbleCarousel(
indicatorBuilder: indicator != null && showIndicator
? (context, controller) {
return indicator!.build(
context,
controller: controller,
itemCount: children.length,
);
}
: null,
delegate: CarouselItemBuilderDelegate(
builder: (context, index) {
return children[index].build(context);
},
itemCount: children.length,
width: itemWidth,
height: itemHeight,
itemPadding: itemPadding,
),
infinitelyScroll: infiniteScroll,
snap: snap,
scrollLeftPadding: scrollLeftPadding ?? 0,
scrollRightPadding: scrollRightPadding ?? 0,
autoScroll: autoScroll,
autoScrollDuration: autoScrollDuration ?? const Duration(seconds: 3),
noScroll: noScroll,
);
}