Repository.parseUrl constructor

Repository.parseUrl(
  1. String input
)

Parses input and return the parsed Repository if successful, or throws FormatException if it was unable to recognize the pattern.

Implementation

factory Repository.parseUrl(String input) {
  try {
    return parseRepositoryUrl(input);
  } on FormatException catch (e) {
    throw FormatException('Invalid repository URL: ${e.message}');
  }
}