SwiperCard constructor

const SwiperCard({
  1. required int order,
  2. required Widget child,
  3. required int totalCount,
})

Implementation

const SwiperCard({
  required this.order,
  required this.child,
  required this.totalCount,
})  : scale = 1 - (order * Constants.scaleFraction),
      yOffset = order * Constants.yOffset;