copyWith method
SfThemeData
copyWith({
- Brightness? brightness,
- SfPdfViewerThemeData? pdfViewerThemeData,
- SfChartThemeData? chartThemeData,
- SfCalendarThemeData? calendarThemeData,
- SfDataGridThemeData? dataGridThemeData,
- SfDateRangePickerThemeData? dateRangePickerThemeData,
- SfBarcodeThemeData? barcodeThemeData,
- SfGaugeThemeData? gaugeThemeData,
- SfSliderThemeData? sliderThemeData,
- SfRangeSelectorThemeData? rangeSelectorThemeData,
- SfRangeSliderThemeData? rangeSliderThemeData,
- SfMapsThemeData? mapsThemeData,
- SfDataPagerThemeData? dataPagerThemeData,
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,
SfCalendarThemeData? calendarThemeData,
SfDataGridThemeData? dataGridThemeData,
SfDateRangePickerThemeData? dateRangePickerThemeData,
SfBarcodeThemeData? barcodeThemeData,
SfGaugeThemeData? gaugeThemeData,
SfSliderThemeData? sliderThemeData,
SfRangeSelectorThemeData? rangeSelectorThemeData,
SfRangeSliderThemeData? rangeSliderThemeData,
SfMapsThemeData? mapsThemeData,
SfDataPagerThemeData? dataPagerThemeData}) {
return SfThemeData.raw(
brightness: brightness ?? this.brightness,
pdfViewerThemeData: pdfViewerThemeData ?? this.pdfViewerThemeData,
chartThemeData: chartThemeData ?? this.chartThemeData,
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);
}