MyTable<T> constructor
const
MyTable<T> ({
- Key? key,
- required List<
MyTableColumn< columns,T> > - required List<
T> data, - double scrollbarThickness = 8.0,
- Radius? scrollbarRadius,
- bool loading = false,
- bool hasRowSelection = false,
- double? dataRowMaxHeight,
- double? dataRowMinHeight,
- void onPressedRow(
- T value
- bool showBottomBorder = false,
- void onSelectAll(
- bool? value
- Color? rowColor,
- MyTablePaginationData? pagination,
- List<
MyTableAction< actions = const [],T> > - bool wrapAction = true,
- 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.',
});