CarouselSlider.builder constructor

CarouselSlider.builder({
  1. required int? itemCount,
  2. required ExtendedIndexedWidgetBuilder? itemBuilder,
  3. required CarouselOptions options,
  4. CarouselController? carouselController,
  5. Key? key,
})

The on demand item builder constructor

Implementation

CarouselSlider.builder({required this.itemCount, required this.itemBuilder, required this.options, CarouselController? carouselController, Key? key})
    : items = null,
      _carouselController = carouselController != null ? carouselController as CarouselControllerImpl : CarouselController() as CarouselControllerImpl,
      super(key: key);