href property

  1. @override
String? href
override

If canonicalLibrary (or canonicalEnclosingElement, for Inheritable subclasses) is null, href should be null.

Implementation

@override
String? get href {
  if (!identical(canonicalModelElement, this)) {
    return canonicalModelElement?.href;
  }
  assert(canonicalLibrary != null);
  assert(canonicalLibrary == library);
  return '${package.baseHref}$filePath';
}