SeniorCarouselSlider constructor

const SeniorCarouselSlider({
  1. Key? key,
  2. SeniorModalDefinitions? deleteDialogDefinition,
  3. required String emptyLabel,
  4. required List<ImageProvider<Object>> images,
  5. int initialPage = 0,
  6. dynamic onDelete(
    1. int
    )?,
  7. bool showDots = true,
  8. bool showPageInfo = true,
  9. SeniorCarouselSliderStyle? style,
  10. String toLabelWord = '/',
})

Creates a slider carousel component. The images and emptyLabel parameters are required. The deleteDialogDefinition parameter must be informed whenever onDelete is also informed and only in this situation.

Implementation

const SeniorCarouselSlider({
  Key? key,
  this.deleteDialogDefinition,
  required this.emptyLabel,
  required this.images,
  this.initialPage = 0,
  this.onDelete,
  this.showDots = true,
  this.showPageInfo = true,
  this.style,
  this.toLabelWord = '/',
})  : assert(onDelete == null && deleteDialogDefinition == null ||
          onDelete != null && deleteDialogDefinition != null),
      assert(initialPage <= images.length),
      super(key: key);