MetarRecentWeather constructor
MetarRecentWeather(
- String? code,
- RegExpMatch? match
Implementation
MetarRecentWeather(super.code, RegExpMatch? match) {
if (match == null) {
_description = null;
_obscuration = null;
_other = null;
_precipitation = null;
} else {
_description = weatherDescriptionMap[match.namedGroup('desc')];
_obscuration = weatherObscurationMap[match.namedGroup('obsc')];
_other = weatherOtherMap[match.namedGroup('other')];
_precipitation = weatherPrecipitationMap[match.namedGroup('prec')];
}
}