DataTable constructor Null safety

const DataTable(
  1. {Key? key,
  2. required List<DataColumn> columns,
  3. int? sortColumnIndex,
  4. 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. bool showCheckboxColumn,
  17. bool showBottomBorder,
  18. double? dividerThickness,
  19. required List<DataRow> rows,
  20. double? checkboxHorizontalMargin,
  21. TableBorder? border,
  22. Clip clipBehavior}
)

Implementation

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