parseUri function

Uri parseUri(
  1. CalendarProperty property
)

Parses a CalendarProperty into a URI value.

Implementation

Uri parseUri(CalendarProperty property) {
  final uri = Uri.tryParse(property.value);
  if (uri == null) {
    throw ParseException(
      'Invalid URI value "${property.value}"',
      lineNumber: property.lineNumber,
    );
  }
  return uri;
}