CarouselItem.video constructor
const
CarouselItem.video({
- required String? videoUrl,
- 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;