Info: Compiling with sound null safety
lib/src/ffi.dart:23:5: Error: Can't create typedef from non-function type.
= Pointer<NativeFunction<Void Function(Pointer<Uint8>, UintPtr, Pointer)>>;
^
lib/src/ffi.dart:30:39: Error: Can't create typedef from non-function type.
typedef FlutterDesktopMessageCallback = Pointer<
^
lib/src/ffi.dart:44:50: Error: Can't create typedef from non-function type.
typedef FlutterDesktopPixelBufferTextureCallback = Pointer<
^
lib/src/ffi.dart:50:50: Error: Can't create typedef from non-function type.
typedef FlutterDesktopOnPluginRegistrarDestroyed = Pointer<
^
lib/src/ffi.dart:23:60: Error: Type 'UintPtr' not found.
= Pointer<NativeFunction<Void Function(Pointer<Uint8>, UintPtr, Pointer)>>;
^^^^^^^
lib/src/ffi.dart:47:13: Error: Type 'UintPtr' not found.
UintPtr, UintPtr, Pointer)>>;
^^^^^^^
lib/src/ffi.dart:47:22: Error: Type 'UintPtr' not found.
UintPtr, UintPtr, Pointer)>>;
^^^^^^^
lib/src/ffi.dart:192:31: Error: 'UintPtr' isn't a type.
Pointer<Uint8>, UintPtr)>>('FlutterDesktopMessengerSend');
^^^^^^^
lib/src/ffi.dart:223:15: Error: 'UintPtr' isn't a type.
UintPtr,
^^^^^^^
lib/src/ffi.dart:254:15: Error: 'UintPtr' isn't a type.
UintPtr)>>('FlutterDesktopMessengerSendResponse');
^^^^^^^
lib/src/ffi.dart:79:4: Error: Couldn't find constructor 'UintPtr'.
@UintPtr()
^^^^^^^
lib/src/ffi.dart:89:4: Error: Couldn't find constructor 'UintPtr'.
@UintPtr()
^^^^^^^
lib/src/ffi.dart:103:4: Error: Couldn't find constructor 'UintPtr'.
@UintPtr()
^^^^^^^
lib/src/ffi.dart:107:4: Error: Couldn't find constructor 'UintPtr'.
@UintPtr()
^^^^^^^
lib/src/ffi.dart:80:16: Error: Field 'struct_size' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external int struct_size;
^
lib/src/ffi.dart:90:16: Error: Field 'message_size' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external int message_size;
^
lib/src/ffi.dart:104:16: Error: Field 'width' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external int width;
^
lib/src/ffi.dart:108:16: Error: Field 'height' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external int height;
^
lib/src/ffi.dart:120:53: Error: Field 'callback' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external FlutterDesktopPixelBufferTextureCallback callback;
^
lib/src/ffi.dart:194:39: Error: Expected type 'NativeFunction<Int32 Function(Pointer<FlutterDesktopMessenger>, Pointer<Int8>, Pointer<Uint8>, invalid-type)>' to be a valid and instantiated subtype of 'NativeType'.
- 'NativeFunction' is from 'dart:ffi'.
- 'Int32' is from 'dart:ffi'.
- 'Pointer' is from 'dart:ffi'.
- 'FlutterDesktopMessenger' is from 'package:win32_runner/src/ffi.dart' ('lib/src/ffi.dart').
- 'Int8' is from 'dart:ffi'.
- 'Uint8' is from 'dart:ffi'.
_FlutterDesktopMessengerSendPtr.asFunction<
^
lib/src/ffi.dart:227:48: Error: Expected type 'NativeFunction<Int32 Function(Pointer<FlutterDesktopMessenger>, Pointer<Int8>, Pointer<Uint8>, invalid-type, invalid-type, Pointer<NativeType>)>' to be a valid and instantiated subtype of 'NativeType'.
- 'NativeFunction' is from 'dart:ffi'.
- 'Int32' is from 'dart:ffi'.
- 'Pointer' is from 'dart:ffi'.
- 'FlutterDesktopMessenger' is from 'package:win32_runner/src/ffi.dart' ('lib/src/ffi.dart').
- 'Int8' is from 'dart:ffi'.
- 'Uint8' is from 'dart:ffi'.
- 'NativeType' is from 'dart:ffi'.
_FlutterDesktopMessengerSendWithReplyPtr.asFunction<
^
lib/src/ffi.dart:256:47: Error: Expected type 'NativeFunction<Void Function(Pointer<FlutterDesktopMessenger>, Pointer<FlutterDesktopMessageResponseHandle>, Pointer<Uint8>, invalid-type)>' to be a valid and instantiated subtype of 'NativeType'.
- 'NativeFunction' is from 'dart:ffi'.
- 'Void' is from 'dart:ffi'.
- 'Pointer' is from 'dart:ffi'.
- 'FlutterDesktopMessenger' is from 'package:win32_runner/src/ffi.dart' ('lib/src/ffi.dart').
- 'FlutterDesktopMessageResponseHandle' is from 'package:win32_runner/src/ffi.dart' ('lib/src/ffi.dart').
- 'Uint8' is from 'dart:ffi'.
_FlutterDesktopMessengerSendResponsePtr.asFunction<
^
lib/src/ffi.dart:292:46: Error: Expected type 'NativeFunction<Void Function(Pointer<FlutterDesktopMessenger>, Pointer<Int8>, invalid-type, Pointer<NativeType>)>' to be a valid and instantiated subtype of 'NativeType'.
- 'NativeFunction' is from 'dart:ffi'.
- 'Void' is from 'dart:ffi'.
- 'Pointer' is from 'dart:ffi'.
- 'FlutterDesktopMessenger' is from 'package:win32_runner/src/ffi.dart' ('lib/src/ffi.dart').
- 'Int8' is from 'dart:ffi'.
- 'NativeType' is from 'dart:ffi'.
_FlutterDesktopMessengerSetCallbackPtr.asFunction<
^
lib/src/ffi.dart:423:62: Error: Expected type 'NativeFunction<Void Function(Pointer<FlutterDesktopPluginRegistrar>, invalid-type)>' to be a valid and instantiated subtype of 'NativeType'.
- 'NativeFunction' is from 'dart:ffi'.
- 'Void' is from 'dart:ffi'.
- 'Pointer' is from 'dart:ffi'.
- 'FlutterDesktopPluginRegistrar' is from 'package:win32_runner/src/ffi.dart' ('lib/src/ffi.dart').
_FlutterDesktopPluginRegistrarSetDestructionHandlerPtr.asFunction<
^
Error: AOT compilation failed
Generating AOT kernel dill failed!
Dart SDK version: 2.17.0-49.0.dev (dev) (Sun Jan 23 14:30:49 2022 -0800) on "windows_x64"