CowStatus constructor Null safety

CowStatus(
  1. {int goodCowCnt = 0,
  2. List<Cow> goodCows = const [],
  3. int cautionCowCnt = 0,
  4. List<Cow> cautionCows = const [],
  5. int alertCowCnt = 0,
  6. List<Cow> alertCows = const [],
  7. int seriousCowCnt = 0,
  8. List<Cow> seriousCows = const []}
)

Implementation

CowStatus({
  this.goodCowCnt = 0,
  this.goodCows = const [],
  this.cautionCowCnt = 0,
  this.cautionCows = const [],
  this.alertCowCnt = 0,
  this.alertCows = const [],
  this.seriousCowCnt = 0,
  this.seriousCows = const [],
});