unitsMap top-level constant
Implementation
const Map<Unit, String> unitsMap = {
Unit.undefined: '',
Unit.celsius: '°C',
Unit.centimetre: 'cm',
Unit.cubic_metre_per_cubic_metre: 'm³/m³',
Unit.cubic_metre_per_second: 'm³/s',
Unit.degree_direction: '°',
Unit.dimensionless_integer: '',
Unit.dimensionless: '',
Unit.european_air_quality_index: 'AQI',
Unit.fahrenheit: '°F',
Unit.feet: 'ft',
Unit.fraction: '',
Unit.gdd_celsius: '°C GDD',
Unit.geopotential_metre: 'm',
Unit.grains_per_cubic_metre: 'grains/m³',
Unit.gram_per_kilogram: 'g/kg',
Unit.hectopascal: 'hPa',
Unit.hours: 'hr',
Unit.inch: 'in',
Unit.iso8601: '',
Unit.joule_per_kilogram: 'J/kg',
Unit.kelvin: 'kelvins',
Unit.kilopascal: 'kPa',
Unit.kilogram_per_square_metre: 'kg/m²',
Unit.kilometres_per_hour: 'km/h',
Unit.knots: 'kn',
Unit.megajoule_per_square_metre: 'MJ/m²',
Unit.metre_per_second_not_unit_converted: 'm/s',
Unit.metre_per_second: 'm/s',
Unit.metre: 'm',
Unit.micrograms_per_cubic_metre: 'mcg/m³',
Unit.miles_per_hour: 'mph',
Unit.millimetre: 'mm',
Unit.pascal: 'Pa',
Unit.per_second: 'Hz',
Unit.percentage: '%',
Unit.seconds: 's',
Unit.unix_time: 's',
Unit.us_air_quality_index: 'AQI',
Unit.watt_per_square_metre: 'W/m²',
Unit.wmo_code: '',
};