getPackage 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
@override
Package getPackage() {
if(_library == null) {
throw _throwIfNotFound();
}
return _library!.getPackage();
}