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
:
import 'dart-ext:x';
Common fixes
#
Rewrite the code to use
dart:ffi
as a way of invoking the contents of the
native library.
Unless stated otherwise, the documentation on this site reflects Dart 3.9.2. Page last updated on 2025-9-1. View source or report an issue.