handles method

  1. @override
bool handles(
  1. String locator
)
override

Whether this backend owns locator's scheme.

Implementation

@override
bool handles(String locator) {
  if (!TomGitLocator.matches(locator)) return false;
  if (openLocal != null) return true;
  try {
    return !TomGitLocator.parse(locator).isLocal;
  } on FormatException {
    return true;
  }
}