TableAdvanced<T> constructor

const TableAdvanced<T>({
  1. Key? key,
  2. required List<TableAdvancedColumnHeader> columnHeaders,
  3. required TableAdvancedRow rowBuilder(
    1. T item
    ),
  4. required TableAdvancedController<T> controller,
  5. EdgeInsets innerPadding = EdgeInsets.zero,
  6. double rowSpacing = 12,
  7. Widget paginationBuilder(
    1. TableAdvancedController<T> controller
    )?,
  8. Widget? emptyState,
})

An easy to use table with responsive layout and pagination.

Use the controller to manipulate table properties such as content and pagination. Note that the length of columnHeaders should match the number of cells of each row returned by the rowBuilder, otherwise unexpected behaviour may happen.

Implementation

const TableAdvanced({
  Key? key,
  required this.columnHeaders,
  required this.rowBuilder,
  required this.controller,
  this.innerPadding = EdgeInsets.zero,
  this.rowSpacing = 12,
  this.paginationBuilder,
  this.emptyState,
}) : super(key: key);