MetarRunwayRange constructor
MetarRunwayRange(
- String? code,
- RegExpMatch? match
Implementation
MetarRunwayRange(super.code, RegExpMatch? match) {
if (match != null) {
_rvrLow = rvrLimits[match.namedGroup('rvrlow')];
_rvrHigh = rvrLimits[match.namedGroup('rvrhigh')];
_trend = trends[match.namedGroup('trend')];
final units = match.namedGroup('units');
final lowRange = match.namedGroup('low');
final highRange = match.namedGroup('high');
_name = setRunwayName(match.namedGroup('name')!);
_lowRange = _setRange(lowRange, units);
_highRange = _setRange(highRange, units);
}
}