getEnclosingCamera method
@brief Calculates camera that fits provided bounding box. @param boundingBox Metrics bounding box to enclose.
Dart code snippet: @snippet location_window_common_example.dart dart_LocationWindow_getEnclosingCamera
Implementation
@override
Camera getEnclosingCamera(BoundingBox boundingBox) {
final _getEnclosingCameraFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer<Void> Function(Pointer<Void>, Pointer<Void>),
Pointer<Void> Function(Pointer<Void>, Pointer<Void>)
>('navigine_sdk_flutter_LocationWindow_getEnclosingCamera__BoundingBox'));
final _boundingBoxHandle = navigine_sdk_flutter_BoundingBox_ToFfi(boundingBox);
final _handle = this.handle;
final __resultHandle = _getEnclosingCameraFfi(_handle, _boundingBoxHandle);
navigine_sdk_flutter_BoundingBox_ReleaseFfiHandle(_boundingBoxHandle);
final _result = navigine_sdk_flutter_Camera_FromFfi(__resultHandle);
navigine_sdk_flutter_Camera_ReleaseFfiHandle(__resultHandle);
return _result;
}