DaviColumn<DATA> constructor
DaviColumn<DATA> ({
- dynamic id,
- double width = 100,
- double? grow,
- String? name,
- EdgeInsets? headerPadding,
- EdgeInsets? cellPadding,
- Alignment? headerAlignment,
- Alignment? cellAlignment,
- CellBackgroundBuilder<
DATA> ? cellBackground, - TextStyle? headerTextStyle,
- TextStyle? cellTextStyle,
- TextOverflow? cellOverflow,
- int? fractionDigits,
- DaviCellBuilder<
DATA> ? cellBuilder, - Widget? leading,
- DaviDataComparator<
DATA> ? dataComparator, - PinStatus pinStatus = PinStatus.none,
- DaviIntValueMapper<
DATA> ? intValue, - DaviDoubleValueMapper<
DATA> ? doubleValue, - DaviStringValueMapper<
DATA> ? stringValue, - DaviIconValueMapper<
DATA> ? iconValue, - DaviObjectValueMapper<
DATA> ? objectValue, - bool resizable = true,
- bool cellClip = false,
- bool sortable = true,
- CellStyleBuilder<
DATA> ? cellStyleBuilder, - DaviCellSemanticsBuilder<
DATA> ? semanticsBuilder = defaultSemanticsBuilder,
Implementation
DaviColumn(
{dynamic id,
double width = 100,
double? grow,
this.name,
this.headerPadding,
this.cellPadding,
this.headerAlignment,
this.cellAlignment,
this.cellBackground,
this.headerTextStyle,
this.cellTextStyle,
this.cellOverflow,
this.fractionDigits,
this.cellBuilder,
this.leading,
DaviDataComparator<DATA>? dataComparator,
this.pinStatus = PinStatus.none,
DaviIntValueMapper<DATA>? intValue,
DaviDoubleValueMapper<DATA>? doubleValue,
DaviStringValueMapper<DATA>? stringValue,
DaviIconValueMapper<DATA>? iconValue,
DaviObjectValueMapper<DATA>? objectValue,
this.resizable = true,
this.cellClip = false,
this.sortable = true,
this.cellStyleBuilder,
this.semanticsBuilder = defaultSemanticsBuilder})
: id = id ?? DaviColumnId(),
_width = width,
_grow = grow != null ? math.max(1, grow) : null,
stringValueMapper = stringValue,
intValueMapper = intValue,
iconValueMapper = iconValue,
doubleValueMapper = doubleValue,
objectValueMapper = objectValue,
dataComparator = dataComparator ??
_buildDataComparator(
intValue, doubleValue, stringValue, iconValue, objectValue);