CustomDataTable constructor Null safety

CustomDataTable(
  1. {required List<DataTableColumn> columns,
  2. required List<DataTableRow> rows,
  3. required RefreshController refreshController,
  4. required VoidCallback onRefresh,
  5. required VoidCallback onLoading,
  6. int? sortColumnIdx,
  7. bool sortIsAscending = true,
  8. bool showCheckboxColumn = false}
)

Implementation

CustomDataTable({
  required this.columns,
  required this.rows,
  required this.refreshController,
  required this.onRefresh,
  required this.onLoading,
  this.sortColumnIdx,
  this.sortIsAscending = true,
  this.showCheckboxColumn = false,
});