parseIsoTimeOfDay method

TimeOfDay parseIsoTimeOfDay()

convert ISO_8601 duration to dart duration copied from iso_duration_parser package

Implementation

TimeOfDay parseIsoTimeOfDay() {
  var res = parseIsoDuration();
  if (res == null) {
    throw Exception('$this is not a valid ISO_8601 duration');
  }
  return res.toTimeOfDay();
}