Hello! Could you help me with structs?
I have a function like that
struct Offset2D
{
double x;
double y;
};
struct Offset2D createOffset2D(double x, double y);
How can I use this function with web_ffi? How should I change this code in Dart to work with Offset2D on the Dart side?
class Offset2D extends ffi.Struct {
@ffi.Double()
external double x;
@ffi.Double()
external double y;
}
Hello! Could you help me with structs?
I have a function like that
How can I use this function with
web_ffi? How should I change this code in Dart to work withOffset2Don the Dart side?