newNativePort 属性

Pointer<NativeFunction<Int64 Function(Pointer<Uint8>, Pointer<NativeFunction<Dart_NativeMessageHandler>>, Int8)>> newNativePort

指向一个函数指针

Dart_Port Dart_NewNativePort(const char* name,
                             Dart_NativeMessageHandler handler,
                             bool handle_concurrently)

dart_native_api.h 中。

实现

external static Pointer<
    NativeFunction<
        Int64 Function(
            Pointer<Uint8>,
            Pointer<NativeFunction<Dart_NativeMessageHandler>>,
            Int8)>> get newNativePort;