SfTheme constructor Null safety

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

Creating an argument constructor of SfTheme class.

Implementation

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