HeaderColumn class
A class representing a header column
Constructors
- HeaderColumn({required Widget widget, required String textVisibilityDialog, ColumnAutoSize? autoSize = const ColumnAutoSize(), double? autoSizeWidth, ColumnAutoSizeWidthBuilder? autoSizeWidthBuilder, double? width, double? minimumWidth, double? maximumWidth, double? flex, int height = 55, bool visible = true, bool resizable = true, int? combinedColumns, bool pinLeft = false, bool pinRight = false, bool canHide = true, bool sortable = false, bool filterable = false, TreeDataTableColumnFilterType filterType = TreeDataTableColumnFilterType.text, bool reorderable = true, TreeDataTableSortComparator? sortComparator})
- Creates a new instance of HeaderColumn
- HeaderColumn.text(String text, {String? textVisibilityDialog, TextStyle? style, TextAlign? textAlign, int? maxLines, TextOverflow? overflow, ColumnAutoSize? autoSize = const ColumnAutoSize(), double? autoSizeWidth, ColumnAutoSizeWidthBuilder? autoSizeWidthBuilder, double? width, double? minimumWidth, double? maximumWidth, double? flex, int height = 55, bool visible = true, bool resizable = true, int? combinedColumns, bool pinLeft = false, bool pinRight = false, bool canHide = true, bool sortable = false, bool filterable = false, TreeDataTableColumnFilterType filterType = TreeDataTableColumnFilterType.text, bool reorderable = true, TreeDataTableSortComparator? sortComparator})
- Creates a text header column.
Properties
- autoSize → ColumnAutoSize?
-
Best-fit behavior used when the user double-clicks this column's
separator. Set to
nullto disable double-click best fit.final - autoSizeWidth → double?
-
Preferred header content width used by best-fit sizing.
final
- autoSizeWidthBuilder → ColumnAutoSizeWidthBuilder?
-
Computes a preferred header content width for custom widgets. Takes
precedence over autoSizeWidth.
final
- canHide → bool
-
Whether this column can be hidden by the user in the column
visibility dialog or in the column menu. Defaults to true.
final
- combinedColumns → int?
-
The number of columns that this header column combines
into a single header column.
final
- filterable → bool
-
Whether users can filter this leaf column from its header menu.
final
- filterType → TreeDataTableColumnFilterType
-
Filter editor to show when filterable is true.
final
- flex → double?
-
The flex factor to determine how much space this column should take
relative to others. If set, the column will expand to fill available
space according to its flex value.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
The height of the header column. Defaults to 55
final
- maximumWidth → double?
-
The maximum width of the header and data column.
final
- minimumWidth → double?
-
The minimum width of the header and data column. Defaults
to 50.0.
final
- pinLeft → bool
-
All rows for this column will be pinned to the left
final
- pinRight → bool
-
All rows for this column will be pinned to the right
final
- reorderable → bool
-
Whether users can drag this header column to reorder it.
final
- resizable → bool
-
A flag indicating whether the column is resizable by the
user. Defaults to true.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortable → bool
-
Whether users can sort this leaf column from its header or column menu.
final
- sortComparator → TreeDataTableSortComparator?
-
An optional comparator for this column's cell sort values.
final
- textVisibilityDialog → String
-
The text to be displayed in the column visibility dialog.
final
- visible → bool
-
A flag indicating whether the header column should be hidden
final
- widget → Widget
-
The widget to be displayed in the header column
final
- width → double?
-
The width of the header and data column.
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