Conditions constructor

Conditions({
  1. required String type,
  2. required DateTime stamp,
  3. required String description,
  4. required Daylight daylight,
  5. required List<Parameter> params,
  6. required Img img,
})

Creates a Conditions instance.

The API users typically do not create Conditions instances directly.

Parameters

  • type: Condition type identifier (see PredefinedParameterTypeValues).
  • stamp: UTC datetime when the condition applies.
  • description: Condition description translated to current SDK language.
  • daylight: Daylight state for this condition.
  • params: List of weather parameters for this condition.
  • img: Image representation of the condition.

Implementation

Conditions({
  required this.type,
  required this.stamp,
  required this.description,
  required this.daylight,
  required this.params,
  required this.img,
});