copyWith method
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,
- SfAIAssistViewThemeData? assistThemeData,
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,
SfAIAssistViewThemeData? assistThemeData,
}) {
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,
assistThemeData: assistThemeData ?? this.assistThemeData,
);
}