SwipeCardStack constructor

SwipeCardStack(
  1. {Key key,
  2. @required List<SwiperItem> children,
  3. int maxAngle = 35,
  4. int threshold = 30,
  5. StackFrom stackFrom = StackFrom.None,
  6. int visibleCount = 2,
  7. int translationInterval = 0,
  8. double scaleInterval = 0,
  9. Duration animationDuration = const Duration(milliseconds: 200),
  10. int historyCount = 1,
  11. void onEnd(
      ),
    1. void onSwipe(
      1. int,
      2. SwiperPosition
      ),
    2. void onRewind(
      1. int,
      2. SwiperPosition
      ),
    3. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 20, horizontal: 25)}
    )

    Implementation

    SwipeCardStack({
      Key key,
      @required
      this.children,
      this.maxAngle = 35,
      this.threshold = 30,
      this.stackFrom = StackFrom.None,
      this.visibleCount = 2,
      this.translationInterval = 0,
      this.scaleInterval = 0,
      this.animationDuration = const Duration(milliseconds: 200),
      this.historyCount = 1,
      this.onEnd,
      this.onSwipe,
      this.onRewind,
      this.padding = const EdgeInsets.symmetric(vertical: 20, horizontal: 25)
    }) :
          assert(maxAngle >= 0 && maxAngle <= 360),
          assert(threshold >= 1 && threshold <= 100),
          assert(visibleCount >= 2),
          assert(translationInterval >= 0),
          assert(scaleInterval >= 0),
          assert(historyCount >= 0),
          super(key: key);