DataColumn2 class

Extension of stock DataColumn, adds the capability to set relative column size via size property

Inheritance
Annotations

Constructors

DataColumn2({required Widget label, String? tooltip, bool numeric = false, DataColumnSortCallback? onSort, ColumnSize size = ColumnSize.M, double? fixedWidth})
Creates the configuration for a column of a DataTable2.
const

Properties

fixedWidth double?
Defines absolute width of the column in pixel (as opposed to relative size used by default). Warning, if the width happens to be larger than available total width other columns can be clipped
final
hashCode int
The hash code for this object.
no setterinherited
label Widget
The column heading.
finalinherited
mouseCursor MaterialStateProperty<MouseCursor?>?
The cursor for a mouse pointer when it enters or is hovering over the heading row.
finalinherited
numeric bool
Whether this column represents numeric data or not.
finalinherited
onSort DataColumnSortCallback?
Called when the user asks to sort the table using this column.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size ColumnSize
Column sizes are determined based on available width by distributing it to individual columns accounting for their relative sizes (see ColumnSize)
final
tooltip String?
The column heading's tooltip.
finalinherited

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