isComponent property

bool get isComponent

Whether this is the Nocterm class Component, or a subtype.

Implementation

bool get isComponent {
  final self = this;
  if (self is! ClassElement) {
    return false;
  }
  if (_isExactly(_nameComponent, _uriFramework)) {
    return true;
  }
  return self.allSupertypes.any(
    (type) => type.element._isExactly(_nameComponent, _uriFramework),
  );
}