commonBuild method
Implementation
Widget commonBuild() {
return ListView.builder(
shrinkWrap: true,
itemCount: itemCount + 1,
itemBuilder: (BuildContext context, int index) {
if (index == 0) {
return (show && (title != null)) ? title! : Container();
} else {
return (animationType == null)
? itemBuilder(index - 1)
: XAnimation(
animationType: animationType,
child: itemBuilder(index - 1),
);
}
},
);
}