add method

void add(
  1. CodeAsset asset, {
  2. AssetRouting routing = const ToAppBundle(),
})

Adds the given asset to the hook output with routing.

Implementation

void add(CodeAsset asset, {AssetRouting routing = const ToAppBundle()}) =>
    _output.addEncodedAsset(asset.encode(), routing: routing);