MyTable<T> constructor

const MyTable<T>({
  1. Key? key,
  2. required List<MyTableColumn<T>> columns,
  3. required List<T> data,
  4. double height = 500,
  5. double scrollbarThickness = 8.0,
  6. Radius? scrollbarRadius,
  7. Color? rowColor,
  8. bool loading = false,
  9. void onPressedRow(
    1. T value
    )?,
  10. bool hasMore = false,
  11. FutureOr<void> onLoadMore()?,
  12. List<MyTableAction<T>> actions = const [],
  13. bool wrapAction = true,
  14. String emptyText = 'Nenhum registro encontrado.',
})

Implementation

const MyTable({
  super.key,
  required this.columns,
  required this.data,
  this.height = 500,
  this.scrollbarThickness = 8.0,
  this.scrollbarRadius,
  this.rowColor,
  this.loading = false,
  this.onPressedRow,
  this.hasMore = false,
  this.onLoadMore,
  this.actions = const [],
  this.wrapAction = true,
  this.emptyText = 'Nenhum registro encontrado.',
});