buildItem method

  1. @override
Widget buildItem(
  1. BuildContext context,
  2. int index,
  3. LevelsBaseModel item
)
override

Implementation

@override
Widget buildItem(BuildContext context, int index, LevelsBaseModel item) {
  return ListTile(
      title: Text(item.levelName),
      trailing: item.childrenItems == null
          ? null
          : item.childrenItems.isEmpty
              ? null
              : getExtendUI(item),
      onTap: () => callBack?.call(item, this));
}