copyWith method
ColumnConfig
copyWith({
- String? field,
- String? title,
- String? columnType,
- bool? headerSort,
- bool? resizable,
- double? width,
- String? hozAlign,
- String? sorter,
- bool? headerWordWrap,
- FormatterParams? formatterParams,
- String? headerFilter,
- String? headerFilterPlaceholder,
- String? parentTitle,
- List<
ColumnConfig> ? columns, - CellBuilder? cellBuilder,
Copy with updated values
Implementation
ColumnConfig copyWith({
String? field,
String? title,
String? columnType,
bool? headerSort,
bool? resizable,
double? width,
String? hozAlign,
String? sorter,
bool? headerWordWrap,
FormatterParams? formatterParams,
String? headerFilter,
String? headerFilterPlaceholder,
String? parentTitle,
List<ColumnConfig>? columns,
CellBuilder? cellBuilder,
}) {
return ColumnConfig(
field: field ?? this.field,
title: title ?? this.title,
columnType: columnType ?? this.columnType,
headerSort: headerSort ?? this.headerSort,
resizable: resizable ?? this.resizable,
width: width ?? this.width,
hozAlign: hozAlign ?? this.hozAlign,
sorter: sorter ?? this.sorter,
headerWordWrap: headerWordWrap ?? this.headerWordWrap,
formatterParams: formatterParams ?? this.formatterParams,
headerFilter: headerFilter ?? this.headerFilter,
headerFilterPlaceholder: headerFilterPlaceholder ?? this.headerFilterPlaceholder,
parentTitle: parentTitle ?? this.parentTitle,
columns: columns ?? this.columns,
cellBuilder: cellBuilder ?? this.cellBuilder,
);
}