TTableHeader<T, K>.image constructor
TTableHeader<T, K>.image (})
Creates a header for displaying images.
Implementation
TTableHeader.image(
this.text,
String? Function(T) map, {
this.flex,
this.alignment,
double width = 50,
bool forceCache = false,
}) : map = null,
minWidth = width + 16,
maxWidth = width + 16,
builder = ((_, item, __) =>
map(item.data) != null ? TImage(url: map(item.data)!, size: width, forceCache: forceCache) : const SizedBox.shrink());