copyWith method

ColumnConfig copyWith({
  1. String? field,
  2. String? title,
  3. String? columnType,
  4. bool? headerSort,
  5. bool? resizable,
  6. double? width,
  7. String? hozAlign,
  8. String? sorter,
  9. bool? headerWordWrap,
  10. FormatterParams? formatterParams,
  11. String? headerFilter,
  12. String? headerFilterPlaceholder,
  13. String? parentTitle,
  14. List<ColumnConfig>? columns,
  15. 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,
  );
}