HeightLightPageView constructor Null safety

HeightLightPageView(
  1. {Key? key,
  2. required _HeightLightItemBuilder itemBuilder,
  3. required _HeightLightConfigFunction storyLength,
  4. required int pageLength,
  5. _HeightLightItemBuilder? gestureItemBuilder,
  6. _HeightLightConfigFunction? 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}
)

Implementation

HeightLightPageView({
  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,
}) : super(key: key);