Cow constructor Null safety

Cow(
  1. {required String id,
  2. required String farmId,
  3. required String name,
  4. required DateTime? birth,
  5. required double birthWeight,
  6. Sensor? sensor,
  7. required List<CowGroup> groups,
  8. required String sex,
  9. required String memo,
  10. required String traceNumber,
  11. required String managementNumber,
  12. required String state,
  13. CowStatusType cowStatus = CowStatusType.good,
  14. bool isSelected = false}
)

Implementation

Cow({
  required this.id,
  required this.farmId,
  required this.name,
  required this.birth,
  required this.birthWeight,
  this.sensor,
  required this.groups,
  required this.sex,
  required this.memo,
  required this.traceNumber,
  required this.managementNumber,
  required this.state,
  this.cowStatus = CowStatusType.good,
  this.isSelected = false,
});