SlideshowPage constructor

SlideshowPage({
  1. required String titleText,
  2. Widget? icon,
  3. String? buttonText,
  4. String? captionText,
  5. bool? centerTitle,
  6. Widget? captionWidget,
  7. Color? nextButtonTextColor,
  8. Widget? bottomWidget,
})

Implementation

SlideshowPage(
    {required this.titleText,
    this.icon,
    this.buttonText,
    this.captionText,
    this.centerTitle,
    this.captionWidget,
    this.nextButtonTextColor,
    this.bottomWidget})

    /// Caption Text or Caption Widget are required only one can be provided
    : assert((captionWidget != null || captionText != null) &&
          !(captionText != null && captionWidget != null));