copyWith method

FdcExportColumn copyWith({
  1. String? fieldName,
  2. String? key,
  3. String? label,
  4. FdcExportValueFormatter? valueFormatter,
  5. FdcExportTextAlignment? textAlignment,
})

Returns a copy with the supplied properties replaced.

Implementation

FdcExportColumn copyWith({
  String? fieldName,
  String? key,
  String? label,
  FdcExportValueFormatter? valueFormatter,
  FdcExportTextAlignment? textAlignment,
}) {
  return FdcExportColumn(
    fieldName: fieldName ?? this.fieldName,
    key: key ?? this.key,
    label: label ?? this.label,
    valueFormatter: valueFormatter ?? this.valueFormatter,
    textAlignment: textAlignment ?? this.textAlignment,
  );
}