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