TTableHeader<T, K> constructor

const TTableHeader<T, K>(
  1. String text, {
  2. Object? map(
    1. T
    )?,
  3. Widget builder(
    1. BuildContext,
    2. TListItem<T, K>,
    3. int
    )?,
  4. int? flex,
  5. double? minWidth,
  6. double? maxWidth,
  7. Alignment? alignment,
  8. String? key,
  9. TFilterType? filterType,
  10. bool filterable = true,
  11. List<TFilterOperator>? filterOperators,
  12. List? filterItems,
  13. TFilterDef<T>? filterDef,
  14. double widthEstimator(
    1. T data
    )?,
  15. List<TKeyValue> keyValuesBuilder(
    1. T data
    )?,
  16. bool flattenOnMobile = false,
  17. String mobileKeyPrefixBuilder(
    1. String headerText,
    2. String childKey
    )?,
})

Creates a standard table header.

Implementation

const TTableHeader(
  this.text, {
  this.map,
  this.builder,
  this.flex,
  this.minWidth,
  this.maxWidth,
  this.alignment,
  this.key,
  this.filterType,
  this.filterable = true,
  this.filterOperators,
  this.filterItems,
  this.filterDef,
  this.widthEstimator,
  this.keyValuesBuilder,
  this.flattenOnMobile = false,
  this.mobileKeyPrefixBuilder,
});