dart-native-interop-ffi
Installation
SKILL.md
Interoperating with C using dart:ffi
Contents
- Core Concepts
- Memory Management & Finalization
- Cross-Platform Type Mapping
- Workflow: Generating Bindings with ffigen
- Workflow: Loading and Calling Native Functions
- Examples
Core Concepts
Use the dart:ffi library to call native C APIs and manage native memory in Dart applications running on the Dart Native platform.
Related Skills: Refer to dart-concurrency-isolates when executing heavy FFI workloads to avoid blocking the main thread.
Memory Management & Finalization
Manage native memory explicitly to prevent leaks.