When generating typedefs for NativeFunction<Function>
, also generate a typedef for the Function
.
#944
Labels
good first issue
A good starting issue for contributors (issues with this label will appear in /contribute)
package:ffigen
In version 10.0.0 of ffigen the following feature was implemented:
"When generating typedefs for
Pointer<NativeFunction<Function>>
, also generate a typedef for theFunction
."It would be great if this would work for typedefs for
NativeFunction<Function>
as well.Example:
ffigen generates:
but for
ffigen generates:
which cannot be used with
ffi.NativeCallable
.If ffigen would generate this code instead:
Then
list_callbackFunction
could be used in the dart code (usingNativeCallable
):The text was updated successfully, but these errors were encountered: