EasyTableColumn<ROW> class

The EasyTable column.

The name argument is optional and is used by the default cell header widget.

The optional value mappings intValue, doubleValue, stringValue, iconValue and objectValue allows automatic cell configuration by identifying and displaying data types in the row object.

The cellBuilder builds a cell widget for each row in that column. A default cellBuilder will be used if the column has any value mapping defined.

This column is sortable if the argument sortable is TRUE and a sort has been defined for ascending sort. Descending sort is applied by inverting the arguments in sort.

The default value of sortable is TRUE.

If the sort is not set, it will be created automatically for the value mappings.

The fractionDigits is the optional decimal-point string-representation used by the default cell width when the doubleValue is set.

Inheritance
Mixed in types

Constructors

EasyTableColumn({dynamic id, double width = 100, double? grow, String? name, int? fractionDigits, bool sortable = true, bool resizable = true, PinStatus pinStatus = PinStatus.none, EdgeInsets? headerPadding, EdgeInsets? cellPadding, Alignment? headerAlignment, Alignment? cellAlignment, TextStyle? cellTextStyle, TextOverflow? cellOverflow, CellBackgroundBuilder<ROW>? cellBackground, TextStyle? headerTextStyle, bool cellClip = false, Widget? leading, EasyTableCellBuilder<ROW>? cellBuilder, EasyTableColumnSort<ROW>? sort, EasyTableIntValueMapper<ROW>? intValue, EasyTableDoubleValueMapper<ROW>? doubleValue, EasyTableStringValueMapper<ROW>? stringValue, EasyTableIconValueMapper<ROW>? iconValue, EasyTableObjectValueMapper<ROW>? objectValue, CellStyleBuilder<ROW>? cellStyleBuilder})
factory

Properties

cellAlignment Alignment?
final
cellBackground CellBackgroundBuilder<ROW>?
final
cellBuilder EasyTableCellBuilder<ROW>?
final
cellClip bool
final
cellOverflow TextOverflow?
final
cellPadding EdgeInsets?
final
cellStyleBuilder CellStyleBuilder<ROW>?
final
cellTextStyle TextStyle?
final
doubleValueMapper EasyTableDoubleValueMapper<ROW>?
final
fractionDigits int?
final
grow double?
The grow factor to use for this column.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
headerAlignment Alignment?
final
headerPadding EdgeInsets?
final
headerTextStyle TextStyle?
final
iconValueMapper EasyTableIconValueMapper<ROW>?
final
id → dynamic
final
intValueMapper EasyTableIntValueMapper<ROW>?
final
isSorted bool
no setterinherited
leading Widget?
final
name String?
final
objectValueMapper EasyTableObjectValueMapper<ROW>?
final
order TableSortOrder?
no setterinherited
pinStatus PinStatus
final
priority int?
no setterinherited
resizable bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sort EasyTableColumnSort<ROW>?
final
sortable bool
no setter
stringValueMapper EasyTableStringValueMapper<ROW>?
final
width double
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
override

Operators

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