EditableColumn constructor

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

Implementation

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