TTableHeader<T, K>.map constructor

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

Creates a header using only a mapping function.

Implementation

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