MyTable<T> constructor

const MyTable<T>({
  1. Key? key,
  2. required List<MyTableColumn<T>> columns,
  3. required List<T> data,
  4. double scrollbarThickness = 8.0,
  5. Radius? scrollbarRadius,
  6. bool loading = false,
  7. bool hasRowSelection = false,
  8. double? dataRowMaxHeight,
  9. double? dataRowMinHeight,
  10. void onPressedRow(
    1. T value
    )?,
  11. bool showBottomBorder = false,
  12. void onSelectAll(
    1. bool? value
    )?,
  13. Color? rowColor,
  14. MyTablePaginationData? pagination,
  15. List<MyTableAction<T>> actions = const [],
  16. bool wrapAction = true,
  17. String emptyText = 'Nenhum registro encontrado.',
})

Implementation

const MyTable({
  super.key,
  required this.columns,
  required this.data,
  this.scrollbarThickness = 8.0,
  this.scrollbarRadius,
  this.loading = false,
  this.hasRowSelection = false,
  this.dataRowMaxHeight,
  this.dataRowMinHeight,
  this.onPressedRow,
  this.showBottomBorder = false,
  this.onSelectAll,
  this.rowColor,
  this.pagination,
  this.actions = const [],
  this.wrapAction = true,
  this.emptyText = 'Nenhum registro encontrado.',
});