MyTableView<T extends BaseModel> constructor
const
MyTableView<T extends BaseModel> ({
- Key? key,
- required ValueChanged<
int> onNext, - required ValueChanged<
int> onPrevious, - String? title,
- String? subTitle,
- Widget? header,
- PaginatedModel<
BaseModel> ? model, - ValueChanged<
T> ? onTap, - ValueChanged<
T> ? onMenuSelected, - ValueChanged<
T> ? onSelectedItem, - ValueChanged<
bool?> ? onSelectAll, - VoidCallback? onAdd,
- List actions = const [],
- List<
T> selectedItems = const [], - Widget? actionOnselectedMany,
- AlignmentGeometry paginateAlignment = Alignment.bottomLeft,
- WidgetStateProperty<
Color?> ? dataRowColor, - double? dataRowMinHeight,
- double? dataRowMaxHeight = defaultRowHeight,
- bool showCheckboxColumn = true,
- bool showBottomBorder = false,
- bool enableInternalSorting = true,
- bool showScrollbar = true,
- double scrollbarThickness = 8.0,
- Radius? scrollbarRadius,
- String? buttonTitle,
Implementation
const MyTableView({
super.key,
// Props obrigatórias
required this.onNext,
required this.onPrevious,
// Props opcionais - básicas
this.title,
this.subTitle,
this.header,
this.model,
// Props opcionais - interatividade
this.onTap,
this.onMenuSelected,
this.onSelectedItem,
this.onSelectAll,
this.onAdd,
// Props opcionais - ações e seleção
this.actions = const [],
this.selectedItems = const [],
this.actionOnselectedMany,
// Props opcionais - estilo e comportamento
this.paginateAlignment = Alignment.bottomLeft,
this.dataRowColor,
this.dataRowMinHeight,
this.dataRowMaxHeight = defaultRowHeight,
this.showCheckboxColumn = true,
this.showBottomBorder = false,
this.enableInternalSorting = true,
this.showScrollbar = true,
this.scrollbarThickness = 8.0,
this.scrollbarRadius,
this.buttonTitle,
});