DataCell constructor

const DataCell(
  1. Widget child, {
  2. bool placeholder = false,
  3. bool showEditIcon = false,
  4. GestureTapCallback? onTap,
  5. GestureLongPressCallback? onLongPress,
  6. GestureTapDownCallback? onTapDown,
  7. GestureTapCallback? onDoubleTap,
  8. GestureTapCancelCallback? onTapCancel,
})

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.

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.

Implementation

const DataCell(
  this.child, {
  this.placeholder = false,
  this.showEditIcon = false,
  this.onTap,
  this.onLongPress,
  this.onTapDown,
  this.onDoubleTap,
  this.onTapCancel,
});