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