PrismColumn<T> class

One column of a PrismDataTable.

Annotations

Constructors

PrismColumn({required String label, required Widget cell(BuildContext context, T row, int index), double? width, int flex = 1, bool numeric = false, bool alwaysVisible = false, int priority = 0, int sortComparator(T a, T b)?})
Creates a table column.
const

Properties

alwaysVisible → bool
Never hidden on compact windows — useful for the identity column.
final
cell → Widget Function(BuildContext context, T row, int index)
Renders the cell for a row.
final
flex → int
Share of remaining width when width is null. Defaults to 1.
final
hashCode → int
The hash code for this object.
no setterinherited
label → String
Header label.
final
numeric → bool
Right-aligns the column, as numbers should be.
final
priority → int
Higher priority columns survive longer when space is scarce.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sortComparator → int Function(T a, T b)?
Enables sorting on this column when non-null.
final
width → double?
Fixed column width; when null the column shares space by flex.
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