# LibraryDeclaration constructor

const LibraryDeclaration()

Represents a Dart library, providing access to its URI, the containing package, and all top-level declarations inside it.

Libraries in Dart map directly to `.dart` files and can expose multiple classes, functions, and constants.

### Example

    final library = reflector.getLibraries().firstWhere(
      (lib) => lib.getUri().contains('my_library.dart'),
    );
    print(library.getParentPackage().getName());
    for (final decl in library.getDeclarations()) {
      print(decl.getName());
    }

## Implementation

    const LibraryDeclaration();