data property

SfChartThemeData data
final

Specifies the color and typography values for descendant chart widgets.

Widget build(BuildContext context) {
  return Scaffold(
    body: SfChartTheme(
      data: SfChartThemeData(
        brightness: Brightness.dark,
        backgroundColor: Colors.grey
      ),
      child: SfCartesianChart()
    ),
  );
}

Implementation

final SfChartThemeData data;