TreeColumn.custom constructor

TreeColumn.custom({
  1. required Widget widget,
  2. double? autoSizeWidth,
  3. ColumnAutoSizeWidthBuilder? autoSizeWidthBuilder,
  4. Object? sortValue,
  5. Object? filterValue,
  6. TreeDataTableCellCallback? onTap,
  7. TreeDataTableCellCallback? onDoubleTap,
  8. TreeDataTableCellCallback? onSecondaryTap,
  9. 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));