convertRect_ method
Converts a rectangle in the given view’s coordinate system to a geographic bounding box.
If the returned coordinate bounds contains a longitude is less than −180 degrees or greater than 180 degrees, the bounding box straddles the antimeridian or international date line.
@param rect The rectangle to convert. @param view The view in whose coordinate system the rectangle is expressed. @return The geographic bounding box coextensive with the given rectangle.
Implementation
MLNCoordinateBounds convertRect_(objc.CGRect rect, {UIView? view}) {
final _ptr = pkg_ffi.calloc<MLNCoordinateBounds>();
objc.useMsgSendVariants ? _objc_msgSend_1f65wixStret(_ptr, this.ref.pointer, _sel_convertRect_toCoordinateBoundsFromView_, rect, view?.ref.pointer ?? ffi.nullptr) : _ptr.ref = _objc_msgSend_1f65wix(this.ref.pointer, _sel_convertRect_toCoordinateBoundsFromView_, rect, view?.ref.pointer ?? ffi.nullptr);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<MLNCoordinateBounds>(), finalizer: pkg_ffi.calloc.nativeFree);
return ffi.Struct.create<MLNCoordinateBounds>(_finalizable);
}