StoryPageView constructor

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. void onPageChanged(
    1. int
    )?,
  14. Color indicatorVisitedColor = Colors.white,
  15. Color indicatorUnvisitedColor = Colors.grey,
  16. double indicatorHeight = 2,
  17. bool showShadow = false,
})

Implementation

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.onPageChanged,
  this.indicatorVisitedColor = Colors.white,
  this.indicatorUnvisitedColor = Colors.grey,
  this.indicatorHeight = 2,
  this.showShadow = false,
}) : super(key: key);