convertPoint method

CLLocationCoordinate2D convertPoint(
  1. CGPoint point
)

Converts a point in the coordinate system of the map view the projection was initialized with to the geographical coordinate.

@param point The point to convert. @return The geographic coordinate at the given point.

Implementation

CLLocationCoordinate2D convertPoint(objc.CGPoint point) {
  final _ptr = pkg_ffi.calloc<CLLocationCoordinate2D>();
  objc.useMsgSendVariants ? _objc_msgSend_zdqa7Stret(_ptr, this.ref.pointer, _sel_convertPoint_, point) : _ptr.ref = _objc_msgSend_zdqa7(this.ref.pointer, _sel_convertPoint_, point);
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
      ffi.sizeOf<CLLocationCoordinate2D>(), finalizer: pkg_ffi.calloc.nativeFree);
  return ffi.Struct.create<CLLocationCoordinate2D>(_finalizable);

}