pointRef property
CvPoint
get
pointRef
The struct value to pass to a native function, on the Dart heap.
Use it instead of toPoint().ref: that takes a view of the native memory of a
temporary wrapper, which a GC can free (through its finalizer) before
the call copies the struct, and the native code then reads freed memory.
Implementation
cvg.CvPoint get pointRef => ffi.Struct.create<cvg.CvPoint>()
..x = this.$1
..y = this.$2;