animateItem method
Implementation
Widget animateItem(BuildContext context, int index, animation){
final data = getItem(index);
Widget child;
if(data != null){
if(data is Widget){
child = data;
}
else{
switch(itemAnimation){
case NUIListItemAnimation.SCALE: child = scaleItem(context, data, index, animation); break;
case NUIListItemAnimation.SIZE: child = sizeItem(context, data, index, animation); break;
case NUIListItemAnimation.SLIDE: child = slideItem(context, data, index, animation); break;
case NUIListItemAnimation.FADE: child = fadeItem(context, data, index, animation); break;
default: child = renderListItem(getItem(index), index, animation); break;
}
}
}
else{
child = renderListItem(getItem(index), index, animation);
}
return child;
}