The Flutter team has recently released Flutter v3.22, leading to build error in Jason. Example of build error:
../lib/src/native/platform/peer_connection.dart:32:20: Error: Expected type 'void Function(PeerConnection)' to be 'void Function(Object)', which is the Dart type corresponding to 'NativeFunction<Void Function(Handle)>'.
Change signatures of FFI functions to accept Object instead of concrete types, and cast this Objects to concrete type with as keyword inside the function.
Synopsis
The Flutter team has recently released Flutter
v3.22
, leading to build error in Jason. Example of build error:Failed CI after Flutter release
Solution
Change signatures of FFI functions to accept
Object
instead of concrete types, and cast thisObject
s to concrete type withas
keyword inside the function.Checklist
k::
labels applied