NewView constructor
NewView({})
Implementation
NewView({
super.key,
this.areaName = "Songdo, Incheon",
this.weatherConditionCode = 400,
this.temperature = 26.0,
this.weatherMain = "It's a clear day.",
DateTime? date,
DateTime? sunrise,
DateTime? sunset,
this.tempMax = 28.0,
this.tempMin = 21.0,
}) : date = date ?? DateTime.now(),
sunrise = sunrise ?? DateTime(2023, 1, 1, 6, 30),
sunset = sunset ?? DateTime(2023, 1, 1, 18, 0);