of static method
The data from the closest SfChartTheme instance that encloses the given context.
Defaults to SfThemeData.chartThemeData if there is no SfChartTheme in the given build context.
Implementation
static SfChartThemeData of(BuildContext context) {
final SfChartTheme? sfChartTheme =
context.dependOnInheritedWidgetOfExactType<SfChartTheme>();
return sfChartTheme?.data ?? SfTheme.of(context).chartThemeData;
}