CarouselItem.video constructor

const CarouselItem.video({
  1. required String? videoUrl,
  2. ImageProvider<Object>? thumbnail,
})

Create an item representing a video.

videoUrl can be a network URL. thumbnail is an image to show in the gallery or as a placeholder.

Implementation

const CarouselItem.video({required this.videoUrl, this.thumbnail})
  : type = CarouselItemType.video,
    image = null;