i want to retun a widget if it is the last item in the method but i get an error ... Tried calling: call()
itemList.last()
? CircleAvatar(
backgroundColor: mainColor,
radius: 15,
child: Icon(Icons.done),
)
: Container()
assuming your are using a
ListView.builder()