enclosingElement property
Element?
get
enclosingElement
The enclosing element of this element.
This is the element that contains this element, such as a class or a library.
Implementation
Element? get enclosingElement;