TreeColumn.custom constructor
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.
Use this constructor when the displayed cell needs a custom widget.
Supply sortValue and filterValue when sorting or filtering should use
data that cannot be extracted from the widget.
Implementation
TreeColumn.custom({
required this.widget,
this.autoSizeWidth,
this.autoSizeWidthBuilder,
this.sortValue,
this.filterValue,
this.onTap,
this.onDoubleTap,
this.onSecondaryTap,
this.onHover,
}) : assert(autoSizeWidth == null || (autoSizeWidth.isFinite && autoSizeWidth >= 0));