BarGraph constructor Null safety

const BarGraph(
  1. {Key? key,
  2. List<BarDataDay>? barItemsDay,
  3. Size size = const Size(400, 200),
  4. bool isBiDirectional = true,
  5. bool hideGraph = false,
  6. required bool isLoading,
  7. required GraphViewType? prevSelectedViewType,
  8. required GraphViewType selectedViewType,
  9. required Function onSelectViewType,
  10. required GraphAvgType selectedAvgType,
  11. required Function onSelectAvgType,
  12. Function? onScrollReachEnd,
  13. Function? onScrollReachStart,
  14. Cow? cow}
)

Implementation

const BarGraph({
  Key? key,
  this.barItemsDay,
  this.size = const Size(400, 200),
  this.isBiDirectional = true,
  this.hideGraph = false,
  required this.isLoading,
  required this.prevSelectedViewType,
  required this.selectedViewType,
  required this.onSelectViewType,
  required this.selectedAvgType,
  required this.onSelectAvgType,
  this.onScrollReachEnd,
  this.onScrollReachStart,
  this.cow,
}) : super(key: key);