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(
    contentPadding: EdgeInsets.symmetric(
      vertical: 0,
    ),
    title: Text(
      item.levelName,
      style: TextStyle(
          color: item.isVisible
              ? item.selected
                  ? kAppBarColor
                  : kCustomBlackColor
              : kCustomGrayColor.withAlpha(100),
          fontSize: kMiddleFontSize),
    ),
    onTap: () => callBack?.call(item, this),
  );
}