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
Properties
- hashCode β int
-
The hash code for this object.
no setterinherited
- runtimeType β Type
-
A representation of the runtime type of the object.
no setterinherited
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