EditableColumn<T> constructor
const
EditableColumn<T> ({
- required String label,
- required String value(
- T row
- T setValue(
- T row,
- String raw
- double width = 160,
- CellAlign? align,
- bool mono = false,
- bool required = false,
- EditableColumnType type = EditableColumnType.text,
- List<
String> options = const [], - bool includeInTotal = false,
- String normalize(
- String raw
- Comparable sortKey(
- T row
- String? validate(
- String value
- EditableCellValidator<
T> ? cellValidator, - 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);