onTap is a Function that defines the action to be performed when the list item is tapped.
final Function? onTap;