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,
- CellBuilderFull? cellBuilderFull,
- Color? headerBackgroundColor,
- Color? headerTextColor,
- bool? readOnly,
- Color? cellTextColor,
- bool? variableHeight,
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,
CellBuilderFull? cellBuilderFull,
Color? headerBackgroundColor,
Color? headerTextColor,
bool? readOnly,
Color? cellTextColor,
bool? variableHeight,
}) {
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,
cellBuilderFull: cellBuilderFull ?? this.cellBuilderFull,
headerBackgroundColor: headerBackgroundColor ?? this.headerBackgroundColor,
headerTextColor: headerTextColor ?? this.headerTextColor,
readOnly: readOnly ?? this.readOnly,
cellTextColor: cellTextColor ?? this.cellTextColor,
variableHeight: variableHeight ?? this.variableHeight,
);
}