Widget.dataTable constructor Null safety

const Widget.dataTable(
  1. {Key? key,
  2. required List<DataColumn> columns,
  3. int? sortColumnIndex,
  4. @Default(true) bool sortAscending,
  5. Callback? onSelectAll,
  6. Callback? onDeselectAll,
  7. Decoration? decoration,
  8. MaterialStateProperty? dataRowColor,
  9. double? dataRowHeight,
  10. TextStyle? dataTextStyle,
  11. MaterialStateProperty? headingRowColor,
  12. double? headingRowHeight,
  13. TextStyle? headingTextStyle,
  14. double? horizontalMargin,
  15. double? columnSpacing,
  16. @Default(true) bool showCheckboxColumn,
  17. @Default(false) bool showBottomBorder,
  18. double? dividerThickness,
  19. required List<DataRow> rows,
  20. double? checkboxHorizontalMargin,
  21. TableBorder? border,
  22. @Default(Clip.none) Clip clipBehavior}
)

Implementation

const factory Widget.dataTable({
  Key? key,
  required List<DataColumn> columns,
  int? sortColumnIndex,
  @Default(true) bool sortAscending,
  Callback? onSelectAll,
  Callback? onDeselectAll,
  Decoration? decoration,
  MaterialStateProperty? dataRowColor,
  double? dataRowHeight,
  TextStyle? dataTextStyle,
  MaterialStateProperty? headingRowColor,
  double? headingRowHeight,
  TextStyle? headingTextStyle,
  double? horizontalMargin,
  double? columnSpacing,
  @Default(true) bool showCheckboxColumn,
  @Default(false) bool showBottomBorder,
  double? dividerThickness,
  required List<DataRow> rows,
  double? checkboxHorizontalMargin,
  TableBorder? border,
  @Default(Clip.none) Clip clipBehavior,
}) = DataTable;