TreeColumn.text constructor
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.
The displayed text is also used as the default sortValue and
filterValue, which keeps sortable and filterable text columns concise.
Supply explicit values when the displayed text should sort or filter by a
different representation.
Implementation
TreeColumn.text(
String text, {
TextStyle? style,
TextAlign? textAlign,
int? maxLines,
TextOverflow? overflow,
this.autoSizeWidth,
this.autoSizeWidthBuilder,
Object? sortValue,
Object? filterValue,
this.onTap,
this.onDoubleTap,
this.onSecondaryTap,
this.onHover,
}) : widget = Text(
text,
style: style,
textAlign: textAlign,
maxLines: maxLines,
overflow: overflow,
),
sortValue = sortValue ?? text,
filterValue = filterValue ?? sortValue ?? text,
assert(autoSizeWidth == null || (autoSizeWidth.isFinite && autoSizeWidth >= 0));