XDataTable constructor

const XDataTable({
  1. Key? key,
  2. bool showSelect = false,
  3. dynamic onSelectAll(
    1. bool? value
    )?,
  4. dynamic onSelect(
    1. bool? value,
    2. Map<String, dynamic> data
    )?,
  5. dynamic onTabRow(
    1. Map<String, dynamic> value
    )?,
  6. dynamic onSort(
    1. dynamic value
    )?,
  7. List<DatatableHeader> headers = const [],
  8. List<Map<String, dynamic>>? source,
  9. List<Map<String, dynamic>>? selecteds,
  10. Widget? title,
  11. List<Widget>? actions,
  12. List<Widget>? footers,
  13. String? sortColumn,
  14. bool? sortAscending,
  15. bool isLoading = false,
  16. bool autoHeight = true,
  17. bool hideUnderline = true,
  18. bool commonMobileView = false,
  19. bool isExpandRows = true,
  20. List<bool>? expanded,
  21. Widget dropContainer(
    1. Map<String, dynamic> value
    )?,
  22. dynamic onChangedRow(
    1. Map<String, dynamic> value,
    2. DatatableHeader header
    )?,
  23. dynamic onSubmittedRow(
    1. Map<String, dynamic> value,
    2. DatatableHeader header
    )?,
  24. List<ScreenSize> reponseScreenSizes = const [ScreenSize.xs, ScreenSize.sm, ScreenSize.md],
  25. BoxDecoration? headerDecoration,
  26. BoxDecoration? rowDecoration,
  27. BoxDecoration? selectedDecoration,
  28. TextStyle? headerTextStyle,
  29. TextStyle? rowTextStyle,
  30. TextStyle? selectedTextStyle,
  31. Duration timeToSubtract = const Duration(seconds: 0),
})

Implementation

const XDataTable({
  Key? key,
  this.showSelect = false,
  this.onSelectAll,
  this.onSelect,
  this.onTabRow,
  this.onSort,
  this.headers = const [],
  this.source,
  this.selecteds,
  this.title,
  this.actions,
  this.footers,
  this.sortColumn,
  this.sortAscending,
  this.isLoading = false,
  this.autoHeight = true,
  this.hideUnderline = true,
  this.commonMobileView = false,
  this.isExpandRows = true,
  this.expanded,
  this.dropContainer,
  this.onChangedRow,
  this.onSubmittedRow,
  this.reponseScreenSizes = const [
    ScreenSize.xs,
    ScreenSize.sm,
    ScreenSize.md
  ],
  this.headerDecoration,
  this.rowDecoration,
  this.selectedDecoration,
  this.headerTextStyle,
  this.rowTextStyle,
  this.selectedTextStyle,
  this.timeToSubtract = const Duration(seconds: 0),
}) : super(key: key);