build method
Builds the widget for a given item.
If a custom builder is provided, it uses that; otherwise, it defaults to a Text widget.
Implementation
Widget build(T item, bool isSelected) =>
builder?.call(item, isSelected) ?? Text(item.toString());