copyFrom function Null safety

BuildBehavior copyFrom(
  1. AssetId assetId
)

A build behavior which reads assetId and copies it's content into every output.

Implementation

BuildBehavior copyFrom(AssetId assetId) => (buildStep, buildExtensions) =>
    _copyToAll(buildStep, buildExtensions, readFrom: (_) => assetId);