SummerDataColumn class
Defines a column in SummerDataTable.
Width resolution rules:
Constructors
-
SummerDataColumn({required Widget label, String? key, double? width, int flex = 1, double minWidth = 40.0, double maxWidth = double.infinity, bool sortable = false, List<
bool> sortDirections = const [true, false], bool resizable = false, bool ellipsis = false, AlignmentGeometry alignment = Alignment.centerLeft, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0), SummerColumnPin pin = SummerColumnPin.none, String? headerTooltip, List<SummerColumnFilter> ? filters, bool filterMultiple = true, List<SummerDataColumn> children = const [], bool visible = true}) -
const
Properties
- alignment → AlignmentGeometry
-
Default content alignment for cells and the header.
final
-
children
→ List<
SummerDataColumn> -
Child columns. When non-empty this column becomes a header-only group
(antd/naive-style column grouping): its label spans all descendant
columns in a merged header row, and body cells are rendered only for the
(recursively) leaf columns beneath it.
final
- ellipsis → bool
-
When true, overflowing cell text is ellipsized and a tooltip is shown.
final
- filterMultiple → bool
-
Whether the filter dropdown allows multiple selections.
final
-
filters
→ List<
SummerColumnFilter> ? -
Filter options for the header dropdown.
nulldisables filtering.final - flex → int
-
Flex weight for elastic columns. Ignored when width is set.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerTooltip → String?
-
Optional tooltip for the header cell.
final
- isFixed → bool
-
Whether this column has a user-defined fixed width.
no setter
- isGroup → bool
-
Whether this column is a header group (has children).
no setter
- key → String?
-
Stable identifier. Used for sort, resize and filter keys.
final
- label → Widget
-
Header content (usually a Text).
final
- maxWidth → double
-
Maximum width.
final
- minWidth → double
-
Minimum width.
final
- padding → EdgeInsetsGeometry
-
Inner padding applied to header and body cells of this column.
final
- pin → SummerColumnPin
-
Whether the column is frozen to a viewport edge.
final
- resizable → bool
-
Whether the user can drag the column's right border to resize it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortable → bool
-
Whether the header is tappable to sort.
final
-
sortDirections
→ List<
bool> -
Permitted sort directions in click order, as a list where
true= ascend andfalse= descend. Default[true, false](asc → desc → unsort). Append nothing extra; a third click always returns to "unsorted".final - visible → bool
-
Whether this column is rendered. When false, the column is skipped during
layout and no header/body cells are created. Defaults to true.
final
- width → double?
-
Fixed width in logical pixels.
null→ flex-sized.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