Time.fromMetar constructor
Time.fromMetar({
- String? code,
- RegExpMatch? match,
- int? year,
- int? month,
Implementation
factory Time.fromMetar({
String? code,
RegExpMatch? match,
int? year,
int? month,
}) {
String? minute;
String? hour;
String? day;
if (match != null) {
minute = match.namedGroup('min');
hour = match.namedGroup('hour');
day = match.namedGroup('day');
}
return Time(
code: code,
minute: minute,
hour: hour,
day: day,
month: month,
year: year,
);
}