TTableHeader<T>.chip constructor

TTableHeader<T>.chip(
  1. String text,
  2. Object? map(
    1. T
    )?, {
  3. int? flex,
  4. double? minWidth,
  5. double? maxWidth,
  6. Alignment? alignment,
  7. Color? color,
  8. TVariant? type,
})

Implementation

TTableHeader.chip(
  this.text,
  this.map, {
  this.flex,
  this.minWidth,
  this.maxWidth,
  this.alignment,
  Color? color,
  TVariant? type,
})  : value = null,
      builder = ((_, item) => TChip(text: map?.call(item).toString(), color: color, type: type));