data property

SfThemeData? data
final

Specifies the color and typography values for descendant widgets.

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

Implementation

final SfThemeData? data;