data property

Specifies the color and typography values for descendant spark chart widgets.

Widget build(BuildContext context) {
  return Scaffold(
    body: SfSparkChartTheme(
      data: SfSparkChartThemeData(
        brightness: Brightness.light
      ),
      child: SfSparkLineChart(),
    ),
  );
}

Implementation

final SfSparkChartThemeData data;