const DataCell(Widget widget, { bool placeholder: false, bool showEditIcon: false, VoidCallback onTap })

Creates an object to hold the data for a cell in a DataTable.

The first argument is the widget to show for the cell, typically a Text or DropdownButton widget; this becomes the widget property and must not be null.

If the cell has no data, then a Text widget with placeholder text should be provided instead, and then the placeholder argument should be set to true.

Source

const DataCell(this.widget, {
  this.placeholder: false,
  this.showEditIcon: false,
  this.onTap
});