Row configuration and cell data for a DataTable.

One row configuration must be provided for each row to display in the table. The list of DataRow objects is passed as the rows argument to the new DataTable constructor.

The data for this row of the table is provided in the cells property of the DataRow object.

Constructors

DataRow({LocalKey key, bool selected: false, ValueChanged<bool> onSelectChanged, List<DataCell> cells })

Creates the configuration for a row of a DataTable.

const
DataRow.byIndex({int index, bool selected: false, ValueChanged<bool> onSelectChanged, List<DataCell> cells })

Creates the configuration for a row of a DataTable, deriving the key from a row index.

Properties

cells List<DataCell>

The data for this row.

read-only
key LocalKey

A Key that uniquely identifies this row. This is used to ensure that if a row is added or removed, any stateful widgets related to this row (e.g. an in-progress checkbox animation) remain on the right row visually.

read-only
onSelectChanged ValueChanged<bool>

Called when the user selects or unselects a selectable row.

read-only
selected bool

Whether the row is selected.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited