DiseaseObservation constructor Null safety

DiseaseObservation(
  1. {int id = 0,
  2. Farm? farm,
  3. Cow? cow,
  4. int dayAfterBirth = 0,
  5. int dehydration = 0,
  6. int feces = 0,
  7. int respiAndCough = 0,
  8. int snot = 0,
  9. int eye = 0,
  10. int appearance = 0,
  11. int ear = 0,
  12. int sensorPosition = 0,
  13. double temperature = 0,
  14. int bcs = 0,
  15. String memo = "",
  16. DateTime? createdAt}
)

Implementation

DiseaseObservation({
  this.id = 0,
  this.farm,
  this.cow,
  this.dayAfterBirth = 0,
  this.dehydration = 0,
  this.feces = 0,
  this.respiAndCough = 0,
  this.snot = 0,
  this.eye = 0,
  this.appearance = 0,
  this.ear = 0,
  this.sensorPosition = 0,
  this.temperature = 0,
  this.bcs = 0,
  this.memo = "",
  this.createdAt,
});