library2 property

  1. @override
LibraryElement2? get library2
inherited

Library that contains this element.

This will be the element itself if it's a library element. This will be null if this element is a MultiplyDefinedElement that isn't contained in a single library.

Implementation

@override
LibraryElement2? get library2 => thisOrAncestorOfType2();