isComponentCreation property
bool
get
isComponentCreation
Whether this is a constructor invocation for a class that has the Nocterm
class Component as a superclass.
Implementation
bool get isComponentCreation {
final element = constructorName.element?.enclosingElement;
return element.isComponent;
}