enclosingElement property

  1. @override
Element? get enclosingElement
override

The enclosing element of this element.

This is the element that contains this element, such as a class or a library.

Implementation

@override
Element? get enclosingElement => library;