ThemedColumn<T> class

Constructors

ThemedColumn({Widget? label, String? labelText, bool isSortable = true, Alignment alignment = Alignment.centerLeft, WidgetBuilder<T>? widgetBuilder, int customSortingFunction(T a, T b)?, required ValueBuilder<T> valueBuilder, double width = 100, CellTap<T>? onTap, Color? color, Color? textColor, CellColor<T>? cellColor, CellColor<T>? cellTextColor})
A column in a table. This is used to define the columns in a table and search properties.

Properties

alignment Alignment
The alignment of the column. By default it is Alignment.centerLeft.
final
cellColor CellColor<T>?
cellColor overrides the color of the cell.
final
cellTextColor CellColor<T>?
cellTextColor overrides the text color of the cell.
final
color Color?
color overrides the color of the column header.
final
customSortingFunction → (int Function(T a, T b)?)
Compare function for custom sorting of the column. If this function is not null it will be used to sort the column. If this function is null, the column will be sorted with the default method. acceptable return values: -1: a < b 0: a == b 1: a > b
final
hashCode int
The hash code for this object.
no setterinherited
isSortable bool
Whether the column is sortable or not. By default it is true.
final
label Widget?
The label of the column.
final
labelText String?
The label text of the column. Works similar as label but it is used when you want to display a Text widget.
final
onTap CellTap<T>?
onTap function of the column. This is used to define the action when the cell is tapped. This only will work in desktop mode.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor Color?
textColor overrides the text color of the column header.
final
valueBuilder ValueBuilder<T>
The value builder of the column. This is used to display the value of the column. Also, this property is used to search the value of the column.
final
widgetBuilder WidgetBuilder<T>?
The widget builder of the column. This is used to display a custom widget in the column. When this property is null, will be displayed the value of the column as Text widget.
final
width double
width is the width of the column. Only will be used if widgetBuilder is not null and/or label is not null. This property is used to calculate the width of the column.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
predictedContentSize(BuildContext context, T item, TextStyle? style) Size
predictedContentSize returns the predicted size of the content of the column. This is used to calculate the width of the column.
predictedHeaderSize(BuildContext context, TextStyle? style) Size
predictedHeaderSize returns the predicted size of the header of the column. This is used to calculate the width of the column.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

padding EdgeInsets
padding is the padding of the column.
no setter
sortIconSize double
sortIconSize is the size of the sort icon.
no setter