TDataTable<T, K> constructor

const TDataTable<T, K>({
  1. Key? key,
  2. required List<TTableHeader<T>> headers,
  3. TTableTheme? theme,
  4. TListInteraction<T>? interaction,
  5. List<T>? items,
  6. int? itemsPerPage,
  7. String? search,
  8. int? searchDelay,
  9. TLoadListener<T>? onLoad,
  10. ItemKeyAccessor<T, K>? itemKey,
  11. TListController<T, K>? controller,
  12. Widget expandedBuilder(
    1. T item,
    2. int index
    )?,
  13. int paginationTotalVisible = 7,
  14. List<int> itemsPerPageOptions = const [5, 10, 15, 25, 50],
})

Implementation

const TDataTable({
  super.key,
  required this.headers,
  this.theme,
  this.interaction,
  //List
  this.items,
  this.itemsPerPage,
  this.search,
  this.searchDelay,
  this.onLoad,
  this.itemKey,
  this.controller,
  //Expandable
  this.expandedBuilder,
  //DataTable
  this.paginationTotalVisible = 7,
  this.itemsPerPageOptions = const [5, 10, 15, 25, 50],
});