CarouselSlider constructor

CarouselSlider({
  1. required List<Widget>? items,
  2. required CarouselOptions options,
  3. CarouselController? carouselController,
  4. Key? key,
})

Implementation

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