We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FfiNative
1 parent 1a6d6f7 commit 3d02f6dCopy full SHA for 3d02f6d
sdk/lib/ffi/ffi.dart
@@ -906,7 +906,7 @@ abstract class NativeApi {
906
/// Example:
907
///
908
/// ```dart template:top
909
-/// @FfiNative<Int64 Function(Int64, Int64)>('FfiNative_Sum', isLeaf:true)
+/// @Native<Int64 Function(Int64, Int64)>(symbol: 'FfiNative_Sum', isLeaf:true)
910
/// external int sum(int a, int b);
911
/// ```
912
@@ -915,8 +915,9 @@ abstract class NativeApi {
915
916
/// See `Dart_SetFfiNativeResolver` in `dart_api.h`
917
918
-/// NOTE: This is an experimental feature and may change in the future.
+/// NOTE: This experimental feature is replaced by [Native].
919
@Since('2.14')
920
+@Deprecated('Use Native instead.')
921
class FfiNative<T> {
922
final String nativeName;
923
0 commit comments