listFromWidgets static method

List<SwiperCard> listFromWidgets(
  1. List<Widget> children
)

Implementation

static List<SwiperCard> listFromWidgets(List<Widget> children) {
  return List.generate(
    children.length,
    (i) => SwiperCard(
      order: i,
      child: children[i],
      totalCount: children.length,
    ),
  ).reversed.toList();
}