bool isCanonical

Source

@override
bool get isCanonical {
  if (library == canonicalLibrary) {
    if (this is Inheritable) {
      Inheritable i = (this as Inheritable);
      // If we're the defining element, or if the defining element is not
      // in the set of libraries being documented, then this element
      // should be treated as canonical (given library == canonicalLibrary).
      if (i.enclosingElement == i.canonicalEnclosingElement) {
        return true;
      } else {
        return false;
      }
    }
    // If there's no inheritance to deal with, we're done.
    return true;
  }
  return false;
}