DataColumn class

Column configuration for a DataTable.

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

Annotations

Constructors

DataColumn({required Widget label, String? tooltip, bool numeric = false, DataColumnSortCallback? onSort, MaterialStateProperty<MouseCursor?>? mouseCursor, MainAxisAlignment? headingRowAlignment})
Creates the configuration for a column of a DataTable.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
headingRowAlignment MainAxisAlignment?
Defines the horizontal layout of the label and sort indicator in the heading row.
final
label Widget
The column heading.
final
mouseCursor MaterialStateProperty<MouseCursor?>?
The cursor for a mouse pointer when it enters or is hovering over the heading row.
final
numeric bool
Whether this column represents numeric data or not.
final
onSort DataColumnSortCallback?
Called when the user asks to sort the table using this column.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tooltip String?
The column heading's tooltip.
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