SummerDataTable constructor

const SummerDataTable({
  1. Key? key,
  2. required List<SummerDataColumn> columns,
  3. required SummerDataTableSource source,
  4. SummerDataTableThemeData? theme,
  5. double? height,
  6. double? width,
  7. bool isLoading = false,
  8. bool isEmpty = false,
  9. bool showHeader = true,
  10. bool bordered = true,
  11. bool showHover = true,
  12. String? sortColumnKey,
  13. bool sortAscending = true,
  14. SummerSortChange? onSortChange,
  15. List<SummerSortSpec>? sortColumns,
  16. SummerMultiSortChange? onMultiSortChange,
  17. Map<String, List<Object?>>? filteredColumnValues,
  18. SummerFilterChange? onFilterChange,
  19. SummerRowSelection? selection,
  20. SummerRowExpandable? expandable,
  21. ValueChanged<int>? onRowTap,
  22. ValueChanged<int>? onRowLongPress,
  23. ValueChanged<int>? onRowDoubleTap,
  24. int? currentPage,
  25. int? totalPages,
  26. VoidCallback? onNextPage,
  27. VoidCallback? onPreviousPage,
  28. ValueChanged<int>? onPageTap,
  29. Widget? footer,
})

Implementation

const SummerDataTable({
  super.key,
  required this.columns,
  required this.source,
  this.theme,
  this.height,
  this.width,
  this.isLoading = false,
  this.isEmpty = false,
  this.showHeader = true,
  this.bordered = true,
  this.showHover = true,
  this.sortColumnKey,
  this.sortAscending = true,
  this.onSortChange,
  this.sortColumns,
  this.onMultiSortChange,
  this.filteredColumnValues,
  this.onFilterChange,
  this.selection,
  this.expandable,
  this.onRowTap,
  this.onRowLongPress,
  this.onRowDoubleTap,
  this.currentPage,
  this.totalPages,
  this.onNextPage,
  this.onPreviousPage,
  this.onPageTap,
  this.footer,
});