Farm constructor Null safety

Farm(
  1. {required String id,
  2. required String name,
  3. required String zipcode,
  4. required String address,
  5. required String addressDetail,
  6. required String greeting,
  7. required String imagePath,
  8. required String admCode,
  9. required double lat,
  10. required double lng,
  11. required double weatherX,
  12. required double weatherY,
  13. required int calfCnt,
  14. required int breedingCattleCnt,
  15. required int fatteningCattleCnt,
  16. required int dairyCnt}
)

Implementation

Farm({
  required this.id,
  required this.name,
  required this.zipcode,
  required this.address,
  required this.addressDetail,
  required this.greeting,
  required this.imagePath,
  required this.admCode,
  required this.lat,
  required this.lng,
  required this.weatherX,
  required this.weatherY,
  required this.calfCnt,
  required this.breedingCattleCnt,
  required this.fatteningCattleCnt,
  required this.dairyCnt,
});