nitro_annotations library
Classes
- AndroidNativeImpl
- Accepted by NitroModule.android.
- AppleNativeImpl
- Accepted by NitroModule.ios and NitroModule.macos.
- CppImpl
- Direct C++ via CMake/FFI. Valid on all native platforms. Implements all native-platform sealed interfaces so it is accepted by every NitroModule platform field except NitroModule.web.
- HybridEnum
- HybridRecord
- Marks a Dart class as a rich, binary-serialized record type for use as method parameters, return types, or stream items in a @NitroModule.
- HybridStruct
- KotlinImpl
- Kotlin + JNI bridge. Valid on Android only.
- LinuxNativeImpl
- Accepted by NitroModule.linux.
- NativeImpl
- Backward-compatible shorthand namespace. Prefer the per-platform constants (AppleNativeImpl, AndroidNativeImpl, WindowsNativeImpl, LinuxNativeImpl, WebNativeImpl) for clarity.
- NitroAsync
- NitroModule
- NitroNativeAsync
- NitroStream
- SwiftImpl
- Swift + @_cdecl bridge. Valid on Apple platforms (iOS and macOS) only.
- WasmImpl
- WASM/JS interop bridge. Valid on Web only — dart:ffi is unavailable on web.
- WebNativeImpl
- Accepted by NitroModule.web.
- WindowsNativeImpl
- Accepted by NitroModule.windows.
- ZeroCopy
Enums
Constants
- hybridRecord → const HybridRecord
- nitroAsync → const NitroAsync
- nitroNativeAsync → const NitroNativeAsync
- zeroCopy → const ZeroCopy