copyWith method

FdcColumnSummary copyWith({
  1. FdcAggregate? aggregate,
  2. String? label,
  3. bool? labelVisible,
  4. FdcSummaryLabelAlignment? labelAlignment,
  5. bool? allowAggregateChange,
  6. FdcGridSummaryCellStyle? style,
})

Creates a copy with selected values replaced.

Implementation

FdcColumnSummary copyWith({
  FdcAggregate? aggregate,
  String? label,
  bool? labelVisible,
  FdcSummaryLabelAlignment? labelAlignment,
  bool? allowAggregateChange,
  FdcGridSummaryCellStyle? style,
}) {
  return FdcColumnSummary(
    aggregate: aggregate ?? this.aggregate,
    label: label ?? this.label,
    labelVisible: labelVisible ?? this.labelVisible,
    labelAlignment: labelAlignment ?? this.labelAlignment,
    allowAggregateChange: allowAggregateChange ?? this.allowAggregateChange,
    style: style ?? this.style,
  );
}