TreeColumn class
Base class to represent a tree column
Constructors
- TreeColumn({required Widget widget, double? autoSizeWidth, ColumnAutoSizeWidthBuilder? autoSizeWidthBuilder, Object? sortValue, Object? filterValue, TreeDataTableCellCallback? onTap, TreeDataTableCellCallback? onDoubleTap, TreeDataTableCellCallback? onSecondaryTap, TreeDataTableCellCallback? onHover})
- Creates a new instance of TreeColumn
- TreeColumn.custom({required Widget widget, double? autoSizeWidth, ColumnAutoSizeWidthBuilder? autoSizeWidthBuilder, Object? sortValue, Object? filterValue, TreeDataTableCellCallback? onTap, TreeDataTableCellCallback? onDoubleTap, TreeDataTableCellCallback? onSecondaryTap, TreeDataTableCellCallback? onHover})
- Creates a custom widget cell.
- TreeColumn.text(String text, {TextStyle? style, TextAlign? textAlign, int? maxLines, TextOverflow? overflow, double? autoSizeWidth, ColumnAutoSizeWidthBuilder? autoSizeWidthBuilder, Object? sortValue, Object? filterValue, TreeDataTableCellCallback? onTap, TreeDataTableCellCallback? onDoubleTap, TreeDataTableCellCallback? onSecondaryTap, TreeDataTableCellCallback? onHover})
- Creates a text cell.
- TreeColumn.value(Object? value, {String formatter(Object? value)?, TextStyle? style, TextAlign? textAlign, int? maxLines, TextOverflow? overflow, double? autoSizeWidth, ColumnAutoSizeWidthBuilder? autoSizeWidthBuilder, Object? sortValue, Object? filterValue, TreeDataTableCellCallback? onTap, TreeDataTableCellCallback? onDoubleTap, TreeDataTableCellCallback? onSecondaryTap, TreeDataTableCellCallback? onHover})
- Creates a text cell from a raw value.
Properties
- autoSizeWidth → double?
-
Preferred content width used by best-fit column sizing.
final
- autoSizeWidthBuilder → ColumnAutoSizeWidthBuilder?
-
Computes a preferred content width for widgets that the table cannot
measure safely. Takes precedence over autoSizeWidth.
final
- filterValue → Object?
-
The value used when filtering this cell's column.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onDoubleTap → TreeDataTableCellCallback?
-
Called when this cell is double-tapped.
final
- onHover → TreeDataTableCellCallback?
-
Called when the pointer enters this cell.
final
- onSecondaryTap → TreeDataTableCellCallback?
-
Called when this cell receives a secondary tap.
final
- onTap → TreeDataTableCellCallback?
-
Called when this cell is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortValue → Object?
-
The value used when sorting this cell's column.
final
- widget → Widget
-
Widget to be displayed in the 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