Conditions class Weather
Weather conditions for a specific timestamp.
Contains weather information including type, description, parameters, and visual representation for a particular moment in time.
Get a list of Conditions via LocationForecast.forecast.
Constructors
-
Conditions.new({required String type, required DateTime stamp, required String description, required Daylight daylight, required List<
Parameter> params, required Img img}) - Creates a Conditions instance.
-
Conditions.fromJson(Map<
String, dynamic> json) -
Deserializes a JSON-compatible map to create an instance.
factory
Properties
- daylight ↔ Daylight
-
Daylight state for this condition.
getter/setter pair
- description ↔ String
-
Condition description translated to current SDK language.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → Uint8List
-
Image representation as raw bytes.
no setter
- img ↔ Img
-
Image object for the condition.
getter/setter pair
-
params
↔ List<
Parameter> -
Weather parameters for this condition.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stamp ↔ DateTime
-
UTC datetime when the condition applies.
getter/setter pair
- type ↔ String
-
Condition type identifier.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited