PhotoCarousel constructor

const PhotoCarousel({
  1. Key? key,
  2. required List<String> photoUrls,
  3. required PageController controller,
  4. String? caption,
  5. Widget? actionCard,
  6. int maxPhotos = 5,
})

Creates a PhotoCarousel with a list of photos and optional trailing action.

Implementation

const PhotoCarousel({
  super.key,
  required this.photoUrls,
  required this.controller,
  this.caption,
  this.actionCard,
  this.maxPhotos = 5,
});