DataCell class

The data for a cell of a DataTable.

One list of DataCell objects must be provided for each DataRow in the DataTable, in the new DataRow constructor's cells argument.

Annotations

Constructors

DataCell(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.
const

Properties

child Widget
The data for the row.
final
hashCode int
The hash code for this object.
no setterinherited
onDoubleTap GestureTapCallback?
Called when the cell is double tapped.
final
onLongPress GestureLongPressCallback?
Called if the cell is long-pressed.
final
onTap GestureTapCallback?
Called if the cell is tapped.
final
onTapCancel GestureTapCancelCallback?
Called if the user cancels a tap was started on cell.
final
onTapDown GestureTapDownCallback?
Called if the cell is tapped down.
final
placeholder bool
Whether the child is actually a placeholder.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showEditIcon bool
Whether to show an edit icon at the end of the cell.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

empty → const DataCell
A cell that has no content and has zero width and height.