use_ of_ native_ extension
Details about the 'use_of_native_extension' diagnostic produced by the Dart analyzer.
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.
除非另有说明,文档之所提及适用于 Dart 3.12.2 版本报告页面问题.