ETableColumn class

A column definition for the ETable component.

The ETableColumn class defines how a column should be displayed in the table, including its label, width, alignment, and custom rendering.

Example

ETableColumn(
  prop: 'name',
  label: 'Name',
  width: 200,
  align: TextAlign.center,
  sortable: true,
)

Constructors

ETableColumn({required String prop, required String label, double? width, Widget render(dynamic)?, TextAlign? align, bool sortable = false})
const

Properties

align TextAlign?
The text alignment for the column content. If null, the default alignment will be used.
final
hashCode int
The hash code for this object.
no setterinherited
label String
The label text to display in the column header.
final
prop String
The property key in the data object to display in this column.
final
render Widget Function(dynamic)?
A custom render function for the column cells. If provided, this function will be called with the row data to render custom content for each cell in this column.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortable bool
Whether the column can be sorted. When true, a sort indicator will be shown in the header.
final
width double?
The width of the column in logical pixels. If null, the column will size itself based on its content.
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