enclosingElement property

  1. @override
LibraryOrAugmentationElement get enclosingElement
override

Return the element that either physically or logically encloses this element. This will be null if this element is a library because libraries are the top-level elements in the model.

Implementation

@override
LibraryOrAugmentationElement get enclosingElement;