StoryPageView constructor

const StoryPageView({
  1. Key? key,
  2. required StoryItemBuilder itemBuilder,
  3. required StoryConfigFunction storyLength,
  4. required int pageLength,
  5. StoryItemBuilder? gestureItemBuilder,
  6. StoryConfigFunction? initialStoryIndex,
  7. int initialPage = 0,
  8. VoidCallback? onPageLimitReached,
  9. Duration indicatorDuration = const Duration(seconds: 5),
  10. EdgeInsetsGeometry indicatorPadding = const EdgeInsets.symmetric(vertical: 32, horizontal: 8),
  11. Color backgroundColor = Colors.black,
  12. ValueNotifier<IndicatorAnimationCommand>? indicatorAnimationController,
  13. VoidCallback? onStoryPaused,
  14. VoidCallback? onStoryUnpaused,
  15. void onPageBack(
    1. int newPageIndex
    )?,
  16. void onPageForward(
    1. int newPageIndex
    )?,
  17. void onStoryIndexChanged(
    1. int newStoryIndex
    )?,
})

Implementation

const StoryPageView({
  Key? key,
  required this.itemBuilder,
  required this.storyLength,
  required this.pageLength,
  this.gestureItemBuilder,
  this.initialStoryIndex,
  this.initialPage = 0,
  this.onPageLimitReached,
  this.indicatorDuration = const Duration(seconds: 5),
  this.indicatorPadding =
      const EdgeInsets.symmetric(vertical: 32, horizontal: 8),
  this.backgroundColor = Colors.black,
  this.indicatorAnimationController,
  this.onStoryPaused,
  this.onStoryUnpaused,
  this.onPageBack,
  this.onPageForward,
  this.onStoryIndexChanged,
}) : super(key: key);