add method

void add(
  1. CodeAsset asset, {
  2. String? linkInPackage,
})

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);