GTFSwipe constructor

const GTFSwipe({
  1. Key? key,
  2. Axis scrollDirection = Axis.horizontal,
  3. bool reverse = false,
  4. PageController? controller,
  5. ScrollPhysics? physics,
  6. bool pageSnapping = true,
  7. void onPageChanged(
    1. int
    )?,
  8. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  9. List<Widget> banners = const <Widget>[],
  10. bool allowImplicitScrolling = false,
  11. String? restorationId,
  12. Clip clipBehavior = Clip.hardEdge,
  13. ScrollBehavior? scrollBehavior,
  14. dynamic onTap(
    1. String id
    )?,
  15. double height = 108,
  16. double width = double.maxFinite,
  17. double borderRadius = 0,
  18. Color backgroundColor = GTFColor.transparent,
  19. EdgeInsets? padding = EdgeInsets.zero,
})

Implementation

const GTFSwipe({
  Key? key,
  this.scrollDirection = Axis.horizontal,
  this.reverse = false,
  this.controller,
  this.physics,
  this.pageSnapping = true,
  this.onPageChanged,
  this.dragStartBehavior = DragStartBehavior.start,
  this.banners = const <Widget>[],
  this.allowImplicitScrolling = false,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.scrollBehavior,
  this.onTap,
  this.height = 108,
  this.width = double.maxFinite,
  this.borderRadius = 0,
  this.backgroundColor = GTFColor.transparent,
  this.padding = EdgeInsets.zero,
}) : super(key: key);