copyWith method

SfThemeData copyWith({
  1. Brightness? brightness,
  2. SfPdfViewerThemeData? pdfViewerThemeData,
  3. SfChartThemeData? chartThemeData,
  4. SfSparkChartThemeData? sparkChartThemeData,
  5. SfCalendarThemeData? calendarThemeData,
  6. SfDataGridThemeData? dataGridThemeData,
  7. SfDateRangePickerThemeData? dateRangePickerThemeData,
  8. SfBarcodeThemeData? barcodeThemeData,
  9. SfGaugeThemeData? gaugeThemeData,
  10. SfSliderThemeData? sliderThemeData,
  11. SfRangeSelectorThemeData? rangeSelectorThemeData,
  12. SfRangeSliderThemeData? rangeSliderThemeData,
  13. SfMapsThemeData? mapsThemeData,
  14. SfDataPagerThemeData? dataPagerThemeData,
  15. SfTreemapThemeData? treemapThemeData,
  16. SfChatThemeData? chatThemeData,
})

Creates a copy of this theme but with the given fields replaced with the new values.

Implementation

SfThemeData copyWith({
  Brightness? brightness,
  SfPdfViewerThemeData? pdfViewerThemeData,
  SfChartThemeData? chartThemeData,
  SfSparkChartThemeData? sparkChartThemeData,
  SfCalendarThemeData? calendarThemeData,
  SfDataGridThemeData? dataGridThemeData,
  SfDateRangePickerThemeData? dateRangePickerThemeData,
  SfBarcodeThemeData? barcodeThemeData,
  SfGaugeThemeData? gaugeThemeData,
  SfSliderThemeData? sliderThemeData,
  SfRangeSelectorThemeData? rangeSelectorThemeData,
  SfRangeSliderThemeData? rangeSliderThemeData,
  SfMapsThemeData? mapsThemeData,
  SfDataPagerThemeData? dataPagerThemeData,
  SfTreemapThemeData? treemapThemeData,
  SfChatThemeData? chatThemeData,
}) {
  return SfThemeData.raw(
    brightness: brightness ?? this.brightness,
    pdfViewerThemeData: pdfViewerThemeData ?? this.pdfViewerThemeData,
    chartThemeData: chartThemeData ?? this.chartThemeData,
    sparkChartThemeData: sparkChartThemeData ?? this.sparkChartThemeData,
    calendarThemeData: calendarThemeData ?? this.calendarThemeData,
    dataGridThemeData: dataGridThemeData ?? this.dataGridThemeData,
    dataPagerThemeData: dataPagerThemeData ?? this.dataPagerThemeData,
    dateRangePickerThemeData:
        dateRangePickerThemeData ?? this.dateRangePickerThemeData,
    barcodeThemeData: barcodeThemeData ?? this.barcodeThemeData,
    gaugeThemeData: gaugeThemeData ?? this.gaugeThemeData,
    sliderThemeData: sliderThemeData ?? this.sliderThemeData,
    rangeSelectorThemeData:
        rangeSelectorThemeData ?? this.rangeSelectorThemeData,
    rangeSliderThemeData: rangeSliderThemeData ?? this.rangeSliderThemeData,
    mapsThemeData: mapsThemeData ?? this.mapsThemeData,
    treemapThemeData: treemapThemeData ?? this.treemapThemeData,
    chatThemeData: chatThemeData ?? this.chatThemeData,
  );
}