getPackage abstract method
Retrieves metadata about the package.
This includes information such as the package name, version, and available resources.
Example
final pkg = resource.getPackage();
print('Loaded package: ${pkg.name}');
Implementation
Package getPackage();