AsyncPaginatedDataTable2 constructor

AsyncPaginatedDataTable2({
  1. Key? key,
  2. Widget? header,
  3. List<Widget>? actions,
  4. required List<DataColumn> columns,
  5. int? sortColumnIndex,
  6. bool sortAscending = true,
  7. Duration sortArrowAnimationDuration = const Duration(milliseconds: 150),
  8. IconData sortArrowIcon = Icons.arrow_upward,
  9. bool sortArrowAlwaysVisible = false,
  10. Widget sortArrowBuilder(
    1. bool ascending,
    2. bool sorted
    )?,
  11. ValueSetter<bool?>? onSelectAll,
  12. double dataRowHeight = kMinInteractiveDimension,
  13. MaterialStateProperty<Color?>? headingRowColor,
  14. BoxDecoration? headingRowDecoration,
  15. double headingRowHeight = 56,
  16. CheckboxThemeData? headingCheckboxTheme,
  17. TextStyle? headingTextStyle,
  18. double horizontalMargin = 24,
  19. double columnSpacing = 56,
  20. double? dividerThickness,
  21. bool renderEmptyRowsInTheEnd = true,
  22. int fixedLeftColumns = 0,
  23. int fixedTopRows = 1,
  24. Color? fixedColumnsColor,
  25. Color? fixedCornerColor,
  26. CheckboxThemeData? datarowCheckboxTheme,
  27. TextStyle? dataTextStyle,
  28. bool showCheckboxColumn = true,
  29. bool showFirstLastButtons = false,
  30. int? initialFirstRowIndex = 0,
  31. ValueChanged<int>? onPageChanged,
  32. int rowsPerPage = defaultRowsPerPage,
  33. List<int> availableRowsPerPage = const <int>[defaultRowsPerPage, defaultRowsPerPage * 2, defaultRowsPerPage * 5, defaultRowsPerPage * 10],
  34. ValueChanged<int?>? onRowsPerPageChanged,
  35. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  36. required DataTableSource source,
  37. double? checkboxHorizontalMargin,
  38. Alignment checkboxAlignment = Alignment.center,
  39. bool wrapInCard = true,
  40. double? minWidth,
  41. FlexFit fit = FlexFit.tight,
  42. bool hidePaginator = false,
  43. PaginatorController? controller,
  44. ScrollController? scrollController,
  45. ScrollController? horizontalScrollController,
  46. Widget? empty,
  47. Widget? loading,
  48. Widget errorBuilder(
    1. Object? error
    )?,
  49. PageSyncApproach pageSyncApproach = PageSyncApproach.doNothing,
  50. TableBorder? border,
  51. bool autoRowsToHeight = false,
  52. double smRatio = 0.67,
  53. double lmRatio = 1.2,
  54. bool? isHorizontalScrollBarVisible,
  55. bool? isVerticalScrollBarVisible,
})

Implementation

AsyncPaginatedDataTable2({
  super.key,
  super.header,
  super.actions,
  required super.columns,
  super.sortColumnIndex,
  super.sortAscending = true,
  super.sortArrowAnimationDuration = const Duration(milliseconds: 150),
  super.sortArrowIcon = Icons.arrow_upward,
  super.sortArrowAlwaysVisible,
  super.sortArrowBuilder,
  super.onSelectAll,
  super.dataRowHeight = kMinInteractiveDimension,
  super.headingRowColor,
  super.headingRowDecoration,
  super.headingRowHeight = 56,
  super.headingCheckboxTheme,
  super.headingTextStyle,
  super.horizontalMargin = 24,
  super.columnSpacing = 56,
  super.dividerThickness,
  super.renderEmptyRowsInTheEnd = true,
  super.fixedLeftColumns = 0,
  super.fixedTopRows = 1,
  super.fixedColumnsColor,
  super.fixedCornerColor,
  super.datarowCheckboxTheme,
  super.dataTextStyle,
  super.showCheckboxColumn = true,
  super.showFirstLastButtons = false,
  super.initialFirstRowIndex = 0,
  super.onPageChanged,
  super.rowsPerPage = defaultRowsPerPage,
  super.availableRowsPerPage = const <int>[
    defaultRowsPerPage,
    defaultRowsPerPage * 2,
    defaultRowsPerPage * 5,
    defaultRowsPerPage * 10
  ],
  super.onRowsPerPageChanged,
  super.dragStartBehavior = DragStartBehavior.start,
  required super.source,
  super.checkboxHorizontalMargin,
  super.checkboxAlignment,
  super.wrapInCard = true,
  super.minWidth,
  super.fit = FlexFit.tight,
  super.hidePaginator = false,
  super.controller,
  super.scrollController,
  super.horizontalScrollController,
  super.empty,
  this.loading,
  this.errorBuilder,
  this.pageSyncApproach = PageSyncApproach.doNothing,
  super.border,
  super.autoRowsToHeight = false,
  super.smRatio = 0.67,
  super.lmRatio = 1.2,
  super.isHorizontalScrollBarVisible,
  super.isVerticalScrollBarVisible,
});