AirQualityIndex class

The basic object for representing different air quality metrics.

When brought together, these metrics provide a snapshot about the current air quality conditions. There are multiple indexes in the world serving different purposes and groups interested in measuring different aspects of air quality.

Constructors

AirQualityIndex({int? aqi, String? aqiDisplay, String? category, String? code, Color? color, String? displayName, String? dominantPollutant})
AirQualityIndex.fromJson(Map json_)

Properties

aqi int?
The index's numeric score.
getter/setter pair
aqiDisplay String?
Textual representation of the index numeric score, that may include prefix or suffix symbols, which usually represents the worst index score.
getter/setter pair
category String?
Textual classification of the index numeric score interpretation.
getter/setter pair
code String?
The index's code.
getter/setter pair
color Color?
The color used to represent the AQI numeric score.
getter/setter pair
displayName String?
A human readable representation of the index name.
getter/setter pair
dominantPollutant String?
The chemical symbol of the dominant pollutant.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited