SfChartTheme constructor Null safety

const SfChartTheme(
  1. {Key? key,
  2. required SfChartThemeData data,
  3. required Widget child}
)

Creating an argument constructor of SfChartTheme class.

Implementation

const SfChartTheme({Key? key, required this.data, required this.child})
    : super(key: key, child: child);