CarouselSlide constructor

CarouselSlide({
  1. Key? key,
  2. required String? title,
  3. required String? description,
  4. required String? imageAsset,
  5. TextStyle? textStyle,
})

use this constructor if your image asset is provided from your assets directory

Implementation

CarouselSlide({
  super.key,
  required this.title,
  required this.description,
  required this.imageAsset,
  this.textStyle,
}) {
  assert(networkAsset == null && imageAsset != null);
}