description

# DynamicLibrary.codeAsset constructor

1. @Since.new('3.14')

DynamicLibrary.codeAsset(

1. String assetId

)

Loads a code asset registered with `assetId` in a build hook.

EXPERIMENAL: Not available yet in Flutter under Dart 3.13.

See Build hooks for information about registering code assets.

If the asset is statically linked into the current process or executable, this call can still succeed, but lookup only succeeds for symbols available for dynamic lookup, and close is not supported.

Calling this function multiple times with the same `assetId` only loads the library once.

## Implementation

    @Since('3.14')
    external factory DynamicLibrary.codeAsset(String assetId);