Report constructor Null safety

Report(
  1. {required int id,
  2. Farm? farm,
  3. Cow? cow,
  4. Sensor? sensor,
  5. Gateway? gateway,
  6. required ReportGroup group,
  7. required ReportType type,
  8. List<ActionType>? actions,
  9. FeedbackType? feedback,
  10. int? level,
  11. int? continuedDays,
  12. Map<String, dynamic>? cardData,
  13. required bool isPinned,
  14. required DateTime? createdAt,
  15. required DateTime? targetAt}
)

Implementation

Report({
  required this.id,
  this.farm,
  this.cow,
  this.sensor,
  this.gateway,
  required this.group,
  required this.type,
  this.actions,
  this.feedback,
  this.level,
  this.continuedDays,
  this.cardData,
  required this.isPinned,
  required this.createdAt,
  required this.targetAt,
});