HorizontalListView constructor

const HorizontalListView({
  1. required double height,
  2. required double width,
  3. required List<Widget> list,
  4. double itemWidth = 300,
  5. Icon? iconPrevious,
  6. Icon? iconNext,
  7. dynamic onChanged(
    1. int index
    )?,
  8. VoidCallback? onNextPressed,
  9. VoidCallback? onPreviousPressed,
  10. Duration durationAnimation = const Duration(milliseconds: 500),
  11. Curve curveAnimation = Curves.ease,
  12. bool enableManualScroll = true,
  13. bool isStartedFromEnd = false,
  14. Key? key,
})

Implementation

const HorizontalListView({
  required this.height,
  required this.width,
  required this.list,
  this.itemWidth = 300,
  this.iconPrevious,
  this.iconNext,
  this.onChanged,
  this.onNextPressed,
  this.onPreviousPressed,
  this.durationAnimation = const Duration(milliseconds: 500),
  this.curveAnimation = Curves.ease,
  this.enableManualScroll = true,
  this.isStartedFromEnd = false,
  Key? key,
}) : super(key: key);