Slide constructor

const Slide({
  1. Key? key,
  2. required String mediaUrl,
  3. String? title,
  4. String? subtitle,
  5. int? index,
  6. Widget? header,
  7. Widget? footer,
  8. Widget contentBuilder(
    1. BuildContext,
    2. String
    )?,
  9. required ValueNotifier<bool> isPaused,
  10. required StoriesRepo storiesRepo,
  11. required int storyCount,
  12. required int slidesCount,
  13. required int storyIndex,
  14. required ValueNotifier<double> progress,
  15. List? component,
  16. VoidCallback? onStoryShown,
  17. VoidCallback? onSlideComplete,
})

Implementation

const Slide({
  Key? key,
  required this.mediaUrl,
  this.title,
  this.subtitle,
  this.index,
  this.header,
  this.footer,
  this.contentBuilder,
  required this.isPaused,
  required this.storiesRepo,
  required this.storyCount,
  required this.slidesCount,
  required this.storyIndex,
  required this.progress,
  this.component,
  this.onStoryShown,
  this.onSlideComplete,
}) : super(key: key);