TTable<T> constructor

const TTable<T>({
  1. Key? key,
  2. required List<TTableHeader<T>> headers,
  3. required List<T> items,
  4. TTableDecoration decoration = const TTableDecoration(),
  5. bool loading = false,
  6. TTableController<T>? controller,
  7. TTableInteractionConfig interactionConfig = const TTableInteractionConfig(),
  8. bool shrinkWrap = false,
  9. VoidCallback? onScrollEnd,
  10. bool expandable = false,
  11. bool singleExpand = true,
  12. Widget expandedBuilder(
    1. T item,
    2. int index,
    3. bool isExpanded
    )?,
  13. bool selectable = false,
  14. bool singleSelect = false,
})

Implementation

const TTable({
  super.key,
  required this.headers,
  required this.items,
  this.decoration = const TTableDecoration(),
  this.loading = false,
  this.controller,
  this.interactionConfig = const TTableInteractionConfig(),
  this.shrinkWrap = false,
  this.onScrollEnd,
  // Expandable
  this.expandable = false,
  this.singleExpand = true,
  this.expandedBuilder,

  // Selectable
  this.selectable = false,
  this.singleSelect = false,
});