SfThemeData constructor

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

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