Taf constructor

Taf(
  1. String code, {
  2. int? year,
  3. int? month,
  4. bool truncate = false,
})

Implementation

Taf(String code, {int? year, int? month, bool truncate = false})
    : super(code, truncate, type: 'TAF') {
  _year = year;
  _month = month;

  _handleSections();

  _valid = Valid.fromTaf(null, null, _time.time);

  // Parse the body groups.
  _parseBody();

  // Parse the change periods
  _parseChangesForecasted();
}