DataColumn constructor Null safety

const DataColumn(
  1. {required Widget label,
  2. String? tooltip,
  3. bool numeric,
  4. DataColumnSortCallback? onSort}
)

Creates the configuration for a column of a DataTable.

The label argument must not be null.

Implementation

const DataColumn({
  required this.label,
  this.tooltip,
  this.numeric = false,
  this.onSort,
}) : assert(label != null);