DaviColumn<DATA> constructor

DaviColumn<DATA>({
  1. dynamic id,
  2. double width = 100,
  3. double? grow,
  4. String? name,
  5. EdgeInsets? headerPadding,
  6. EdgeInsets? cellPadding,
  7. Alignment? headerAlignment,
  8. Alignment? cellAlignment,
  9. CellBackgroundBuilder<DATA>? cellBackground,
  10. TextStyle? headerTextStyle,
  11. TextStyle? cellTextStyle,
  12. TextOverflow? cellOverflow,
  13. int? fractionDigits,
  14. DaviCellBuilder<DATA>? cellBuilder,
  15. Widget? leading,
  16. DaviDataComparator<DATA>? dataComparator,
  17. PinStatus pinStatus = PinStatus.none,
  18. DaviIntValueMapper<DATA>? intValue,
  19. DaviDoubleValueMapper<DATA>? doubleValue,
  20. DaviStringValueMapper<DATA>? stringValue,
  21. DaviIconValueMapper<DATA>? iconValue,
  22. DaviObjectValueMapper<DATA>? objectValue,
  23. bool resizable = true,
  24. bool cellClip = false,
  25. bool sortable = true,
  26. CellStyleBuilder<DATA>? cellStyleBuilder,
  27. 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);