of static method
The data from the closest SfSparkChartTheme instance that encloses the given context.
Defaults to SfSparkChartTheme.SparkChartThemeData
if there is no SfSparkChartTheme in the given build context.
Implementation
static SfSparkChartThemeData of(BuildContext context) {
final SfSparkChartTheme? sfSparkChartTheme =
context.dependOnInheritedWidgetOfExactType<SfSparkChartTheme>();
return sfSparkChartTheme?.data ?? SfTheme.of(context).sparkChartThemeData;
}