import "package:ffi/ffi.dart"; | |
import 'dart:ffi'; | |
class Coordinate extends Struct { | |
Pointer<Coordinate> next; | |
@Double() | |
external double x; | |
@Double() | |
external double y; | |
factory Coordinate.allocate( | |
Allocator allocator, | |
double x, | |
double y, | |
Pointer<Coordinate> next, | |
) {} | |
} | |
main() {} |