CodeAsset constructor
CodeAsset({})
Constructs a native code asset.
The id of this asset is a uri package:<package>/<name> from package
and name. In build hooks, package must be the name of the package
containing the build hook. Code assets are name-spaced in their own
package to avoid naming conflicts.
Implementation
CodeAsset({
required String package,
required String name,
required this.linkMode,
this.file,
}) : id = 'package:$package/$name';