DataCell constructor
- Widget child, {
- bool placeholder = false,
- bool showEditIcon = false,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- GestureTapDownCallback? onTapDown,
- GestureTapCallback? onDoubleTap,
- 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,
});