brightness property

Brightness brightness
final

The brightness of the overall theme of the application for the chart widgets.

If brightness is not specified, then based on the Theme.of(context).brightness, brightness for chart widgets will be applied.

Also refer Brightness.

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

Implementation

final Brightness brightness;