Carousel constructor

const Carousel(
  1. List<Widget> units, {
  2. Key? key,
  3. double height = 400.0,
  4. double width = 0.0,
  5. FunctionWithAInt? onUnitTapped,
  6. FunctionWithAInt? onIndicatorTapped,
  7. bool useindicator = true,
  8. Color indicatorColor = Colors.white,
  9. Color currentIndicatorColor = Colors.blue,
  10. double indicatorWidth = 40.0,
  11. double indicatorHeight = 26.0,
  12. double indicatorMargin = 3.0,
  13. double indicatorToBottom = 10.0,
  14. BoxShape indicatorShape = BoxShape.rectangle,
  15. FunctionIndicatorBuilder? indicatorBuilder,
  16. bool pageSnapping = true,
  17. bool padEnds = true,
  18. Clip clipBehavior = Clip.hardEdge,
  19. bool reverse = false,
  20. Axis scrollDirection = Axis.horizontal,
  21. bool disableIndicatorDefaultCallbacks = false,
  22. CarouselController? controller,
})

Implementation

const Carousel(
  this.units, {
  super.key,
  this.height = 400.0,
  this.width = 0.0,
  this.onUnitTapped,
  this.onIndicatorTapped,
  this.useindicator = true,
  this.indicatorColor = Colors.white,
  this.currentIndicatorColor = Colors.blue,
  this.indicatorWidth = 40.0,
  this.indicatorHeight = 26.0,
  this.indicatorMargin = 3.0,
  this.indicatorToBottom = 10.0,
  this.indicatorShape = BoxShape.rectangle,
  this.indicatorBuilder,
  this.pageSnapping = true,
  this.padEnds = true,
  this.clipBehavior = Clip.hardEdge,
  this.reverse = false,
  this.scrollDirection = Axis.horizontal,
  this.disableIndicatorDefaultCallbacks = false,
  this.controller,
});