TCarousel constructor

const TCarousel({
  1. Key? key,
  2. required List<Widget> children,
  3. double height = 200,
  4. bool autoplay = false,
  5. Duration autoplayInterval = const Duration(seconds: 4),
  6. double borderRadius = 12,
  7. bool showArrows = true,
  8. bool showIndicators = true,
  9. bool loop = true,
  10. ValueChanged<int>? onPageChanged,
})

Implementation

const TCarousel({
  super.key,
  required this.children,
  this.height = 200,
  this.autoplay = false,
  this.autoplayInterval = const Duration(seconds: 4),
  this.borderRadius = 12,
  this.showArrows = true,
  this.showIndicators = true,
  this.loop = true,
  this.onPageChanged,
});