use_of_native_extension
Dart native extensions are deprecated and aren't available in Dart 2.15.
Description
#The analyzer produces this diagnostic when a library is imported using the dart-ext
scheme.
Example
#The following code produces this diagnostic because the native library x
is being imported using a scheme of dart-ext
:
dart
import 'dart-ext:x';
Common fixes
#Rewrite the code to use dart:ffi
as a way of invoking the contents of the native library.
Was this page's content helpful?
Thank you for your feedback!
Provide details Thank you for your feedback! Please let us know what we can do to improve.
Provide details Unless stated otherwise, the documentation on this site reflects Dart 3.8.1. Page last updated on 2025-05-08. View source or report an issue.