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,
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,
}) {
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);
}