add method
Adds the given asset
to the hook output (or send to linkInPackage
for linking if provided).
Implementation
void add(CodeAsset asset, {String? linkInPackage}) =>
_output.addEncodedAsset(asset.encode(), linkInPackage: linkInPackage);