MyTable<T> constructor
const
MyTable<T> ({
- Key? key,
- required List<
MyTableColumn< columns,T> > - required List<
T> data, - double height = 500,
- double scrollbarThickness = 8.0,
- Radius? scrollbarRadius,
- Color? rowColor,
- bool loading = false,
- void onPressedRow(
- T value
- bool hasMore = false,
- FutureOr<
void> onLoadMore()?, - 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.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.',
});