The following complete examples use link hooks (hook/link.dart) and package:record_use to tree-shake native C libraries (LinkerOptions.treeshake):
| Example | Description | Used Features |
|---|---|---|
mini_audio | Play audio. | - Tree-shaking C library built from source with package:native_toolchain_c based on recorded Dart calls.- Link hook ( hook/link.dart) with LinkerOptions.treeshake. |
sqlite | Database access. | - Tree-shaking C library built from source with package:native_toolchain_c based on recorded Dart calls.- Link hook ( hook/link.dart) with LinkerOptions.treeshake. |
stb_image | Read image metadata. | - Tree-shaking C library built from source with package:native_toolchain_c based on recorded Dart calls.- Link hook ( hook/link.dart) with LinkerOptions.treeshake. |