I need a Function to make the swiper go to the first index I have
I am using card_swiperpackage
Swiper(
loop: true,
itemCount: 2,
itemBuilder: (context, index) {
return Image.asset(index == 0
? blackImages[imageNumber].imagePath
: blackImages[imageNumber].imagePath1);
},
),
am just using setState for state management