isPublic property

bool isPublic
override

This type is a public type if the underlying, canonical element is public. This avoids discarding the resolved type information as canonicalization would ordinarily do.

Implementation

@override
bool get isPublic {
  Container canonicalClass = modelElement.packageGraph
          .findCanonicalModelElementFor(modelElement.element) ??
      modelElement;
  return canonicalClass?.isPublic ?? false;
}