library /*isNonNullableByDefault*/; import self as self; import "dart:ffi" as ffi; import "dart:core" as core; import "dart:ffi"; import "package:ffi/ffi.dart"; class Coordinate extends ffi::Struct { @#C1 external get x() → core::double; @#C1 external set x(core::double #externalFieldValue) → void; @#C1 external get y() → core::double; @#C1 external set y(core::double #externalFieldValue) → void; external get next() → ffi::Pointer; external set next(ffi::Pointer #externalFieldValue) → void; static factory allocate(ffi::Allocator allocator, core::double x, core::double y, ffi::Pointer next) → self::Coordinate { return let final self::Coordinate #t1 = ffi::StructPointer|get#ref(ffi::AllocatorAlloc|call(allocator)) in block { #t1.{self::Coordinate::x} = x; #t1.{self::Coordinate::y} = y; #t1.{self::Coordinate::next} = next; } =>#t1; } } static method main() → dynamic {} constants { #C1 = ffi::Double {} } Constructor coverage from constants: org-dartlang-testcase:///ffi_sample.dart: - Double. (from org-dartlang-sdk:///sdk/lib/ffi/native_type.dart:122:9)