# Package class abstract

🍃 JetLeaf Framework - Represents a Dart package within the runtime context.

This metadata is usually generated at compile time (JIT or AOT) to describe:

- The root application package
- Any dependent packages (e.g., `args`, `collection`)

This class allows tools, scanners, and the reflection system to access package-specific information like name, version, and file location.

Example:

    Package pkg = ...;
    print(pkg.getName()); // => "jetleaf"
    print(pkg.getIsRootPackage()); // => true

Inheritance
  - Object
  - ResourceDeclaration
  - Package

## Constructors

Package.new({required String name, required String version, String? languageVersion, required bool isRootPackage, String? filePath, String? rootUri})
  🍃 JetLeaf Framework - Represents a Dart package within the runtime context.
  const

## Properties

hashCode → int
  The hash code for this object.
  no setter inherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## Methods

getFilePath() → String?
  Returns the file path of the package.
getIsRootPackage() → bool
  Returns whether the package is the root package.
getLanguageVersion() → String?
  Returns the language version of the package.
getName() → String
  Returns the name of the package.
getRootUri() → String?
  Returns the root URI of the package.
getVersion() → String
  Returns the version of the package.
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
toJson() → Map<String, Object>
  Serializes this resource to a JSON-encodable map.
  inherited
toString() → String
  Standard string representation of this resource.
  inherited

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited