SfThemeData constructor
SfThemeData({
- Brightness? brightness,
- SfPdfViewerThemeData? pdfViewerThemeData,
- SfChartThemeData? chartThemeData,
- SfSparkChartThemeData? sparkChartThemeData,
- SfCalendarThemeData? calendarThemeData,
- SfDataGridThemeData? dataGridThemeData,
- SfDataPagerThemeData? dataPagerThemeData,
- SfDateRangePickerThemeData? dateRangePickerThemeData,
- SfBarcodeThemeData? barcodeThemeData,
- SfGaugeThemeData? gaugeThemeData,
- SfSliderThemeData? sliderThemeData,
- SfRangeSliderThemeData? rangeSliderThemeData,
- SfRangeSelectorThemeData? rangeSelectorThemeData,
- SfMapsThemeData? mapsThemeData,
- SfTreemapThemeData? treemapThemeData,
- SfChatThemeData? chatThemeData,
Creating an argument constructor of SfThemeData class.
Implementation
factory SfThemeData({
Brightness? brightness,
SfPdfViewerThemeData? pdfViewerThemeData,
SfChartThemeData? chartThemeData,
SfSparkChartThemeData? sparkChartThemeData,
SfCalendarThemeData? calendarThemeData,
SfDataGridThemeData? dataGridThemeData,
SfDataPagerThemeData? dataPagerThemeData,
SfDateRangePickerThemeData? dateRangePickerThemeData,
SfBarcodeThemeData? barcodeThemeData,
SfGaugeThemeData? gaugeThemeData,
SfSliderThemeData? sliderThemeData,
SfRangeSliderThemeData? rangeSliderThemeData,
SfRangeSelectorThemeData? rangeSelectorThemeData,
SfMapsThemeData? mapsThemeData,
SfTreemapThemeData? treemapThemeData,
SfChatThemeData? chatThemeData,
}) {
brightness ??= Brightness.light;
pdfViewerThemeData = pdfViewerThemeData ?? SfPdfViewerThemeData.raw();
sparkChartThemeData = sparkChartThemeData ??
SfSparkChartThemeData.raw(brightness: brightness);
chartThemeData =
chartThemeData ?? SfChartThemeData.raw(brightness: brightness);
calendarThemeData =
calendarThemeData ?? SfCalendarThemeData.raw(brightness: brightness);
dataGridThemeData =
dataGridThemeData ?? SfDataGridThemeData.raw(brightness: brightness);
dateRangePickerThemeData = dateRangePickerThemeData ??
SfDateRangePickerThemeData.raw(brightness: brightness);
barcodeThemeData =
barcodeThemeData ?? SfBarcodeThemeData.raw(brightness: brightness);
gaugeThemeData =
gaugeThemeData ?? SfGaugeThemeData.raw(brightness: brightness);
sliderThemeData =
sliderThemeData ?? SfSliderThemeData.raw(brightness: brightness);
rangeSelectorThemeData = rangeSelectorThemeData ??
SfRangeSelectorThemeData.raw(brightness: brightness);
rangeSliderThemeData = rangeSliderThemeData ??
SfRangeSliderThemeData.raw(brightness: brightness);
mapsThemeData =
mapsThemeData ?? SfMapsThemeData.raw(brightness: brightness);
treemapThemeData =
treemapThemeData ?? SfTreemapThemeData.raw(brightness: brightness);
dataPagerThemeData =
dataPagerThemeData ?? SfDataPagerThemeData.raw(brightness: brightness);
chatThemeData = chatThemeData ?? SfChatThemeData.raw();
return SfThemeData.raw(
brightness: brightness,
pdfViewerThemeData: pdfViewerThemeData,
chartThemeData: chartThemeData,
sparkChartThemeData: sparkChartThemeData,
calendarThemeData: calendarThemeData,
dataGridThemeData: dataGridThemeData,
dataPagerThemeData: dataPagerThemeData,
dateRangePickerThemeData: dateRangePickerThemeData,
barcodeThemeData: barcodeThemeData,
gaugeThemeData: gaugeThemeData,
sliderThemeData: sliderThemeData,
rangeSelectorThemeData: rangeSelectorThemeData,
rangeSliderThemeData: rangeSliderThemeData,
mapsThemeData: mapsThemeData,
treemapThemeData: treemapThemeData,
chatThemeData: chatThemeData,
);
}