OpenWeather constructor Null safety

OpenWeather(
  1. {required Coord coord,
  2. required List<Weather> weather,
  3. required String base,
  4. required Main main,
  5. required int visibility,
  6. required Wind wind,
  7. Snow? snow,
  8. Snow? rain,
  9. required Clouds clouds,
  10. required int dt,
  11. required Sys sys,
  12. required int timezone,
  13. required int id,
  14. required String name,
  15. required int cod}
)

Implementation

OpenWeather({
  required this.coord,
  required this.weather,
  required this.base,
  required this.main,
  required this.visibility,
  required this.wind,
  this.snow,
  this.rain,
  required this.clouds,
  required this.dt,
  required this.sys,
  required this.timezone,
  required this.id,
  required this.name,
  required this.cod,
});