add method

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

Adds the given asset to the hook output (or send to linkInPackage for linking if provided).

Implementation

void add(DataAsset asset, {String? linkInPackage}) =>
    _output.addEncodedAsset(asset.encode(), linkInPackage: linkInPackage);