EditableColumn<T> constructor

const EditableColumn<T>({
  1. required String label,
  2. required String value(
    1. T row
    ),
  3. T setValue(
    1. T row,
    2. String raw
    )?,
  4. double width = 160,
  5. CellAlign? align,
  6. bool mono = false,
  7. bool required = false,
  8. EditableColumnType type = EditableColumnType.text,
  9. List<String> options = const [],
  10. bool includeInTotal = false,
  11. String normalize(
    1. String raw
    )?,
  12. Comparable sortKey(
    1. T row
    )?,
  13. String? validate(
    1. String value
    )?,
  14. EditableCellValidator<T>? cellValidator,
  15. EditableCellBuilder<T>? cellBuilder,
})

Implementation

const EditableColumn({
  required this.label,
  required this.value,
  this.setValue,
  this.width = 160,
  CellAlign? align,
  this.mono = false,
  this.required = false,
  this.type = EditableColumnType.text,
  this.options = const [],
  this.includeInTotal = false,
  this.normalize,
  this.sortKey,
  this.validate,
  this.cellValidator,
  this.cellBuilder,
}) : align = align ?? (type == EditableColumnType.number ? CellAlign.end : CellAlign.start);