CodeAsset constructor

CodeAsset({
  1. required String package,
  2. required String name,
  3. required LinkMode linkMode,
  4. required OS os,
  5. Uri? file,
  6. Architecture? architecture,
})

Constructs a native code asset.

The id of this asset is a uri package:<package>/<name> from package and name.

Implementation

CodeAsset({
  required String package,
  required String name,
  required LinkMode linkMode,
  required OS os,
  Uri? file,
  Architecture? architecture,
}) : this._(
        id: 'package:$package/$name',
        linkMode: linkMode,
        os: os,
        file: file,
        architecture: architecture,
      );