NativeImpl class sealed

Backward-compatible shorthand namespace. Prefer the per-platform constants (AppleNativeImpl, AndroidNativeImpl, WindowsNativeImpl, LinuxNativeImpl, WebNativeImpl) for clarity.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromTypeName(String? typeName) NativeImpl?
Maps an analyzer-reported Dart type name to the corresponding NativeImpl constant. Used by codegen (SpecExtractor) and any tooling that needs to reconstruct a NativeImpl from a DartObject produced by the analyzer.

Constants

cpp → const CppImpl
Direct C++ via CMake/FFI. Valid on all native platforms (iOS, Android, macOS, Windows, Linux). Equivalent to AppleNativeImpl.cpp, AndroidNativeImpl.cpp, WindowsNativeImpl.cpp, LinuxNativeImpl.cpp.
kotlin → const KotlinImpl
Kotlin + JNI bridge. Valid on NitroModule.android only. Equivalent to AndroidNativeImpl.kotlin.
swift → const SwiftImpl
Swift + @_cdecl C bridge. Valid on NitroModule.ios and NitroModule.macos. Equivalent to AppleNativeImpl.swift.
wasm → const WasmImpl
WASM/JS interop bridge. Valid on NitroModule.web only. dart:ffi is unavailable on web — use this for Web targets. Equivalent to WebNativeImpl.wasm.