layout abstract method
List<Widget>
layout(
- BuildContext context, {
- required double progress,
- required BoxConstraints constraints,
- required CarouselAlignment alignment,
- required Axis direction,
- required CarouselSizeConstraint sizeConstraint,
- required double progressedIndex,
- required int? itemCount,
- required CarouselItemBuilder itemBuilder,
- required bool wrap,
- required bool reverse,
Layouts the carousel items.
contextis the build context.progressis the progress of the carousel.constraintsis the constraints of the carousel.alignmentis the alignment of the carousel.directionis the direction of the carousel.sizeConstraintis the size constraint of the carousel.progressedIndexis the progressed index of the carousel.itemCountis the item count of the carousel.itemBuilderis the item builder of the carousel.wrapis whether the carousel should wrap.reverseis whether the carousel should reverse.
Implementation
List<Widget> layout(
BuildContext context, {
required double progress,
required BoxConstraints constraints,
required CarouselAlignment alignment,
required Axis direction,
required CarouselSizeConstraint sizeConstraint,
required double progressedIndex,
required int? itemCount,
required CarouselItemBuilder itemBuilder,
required bool wrap,
required bool reverse,
});