NewView constructor

NewView({
  1. Key? key,
  2. String areaName = "Songdo, Incheon",
  3. int weatherConditionCode = 400,
  4. double temperature = 26.0,
  5. String weatherMain = "It's a clear day.",
  6. DateTime? date,
  7. DateTime? sunrise,
  8. DateTime? sunset,
  9. double tempMax = 28.0,
  10. double tempMin = 21.0,
})

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);