flyToCamera$2 method

void flyToCamera$2(
  1. MLNMapCamera camera$1, {
  2. required double withDuration,
  3. required double peakAltitude,
  4. ObjCBlock<Void Function()>? completionHandler,
})

Moves the viewpoint to a different location using a transition animation that evokes powered flight and an optional transition duration and peak altitude.

The transition animation seamlessly incorporates zooming and panning to help the user find his or her bearings even after traversing a great distance.

@param camera The new viewpoint. @param duration The amount of time, measured in seconds, that the transition animation should take. Specify 0 to jump to the new viewpoint instantaneously. Specify a negative value to use the default duration, which is based on the length of the flight path. @param peakAltitude The altitude, measured in meters, at the midpoint of the animation. The value of this parameter is ignored if it is negative or if the animation transition resulting from a similar call to -setCamera:animated: would have a midpoint at a higher altitude. @param completion The block to execute after the animation finishes.

Implementation

void flyToCamera$2(MLNMapCamera camera$1, {required double withDuration,required double peakAltitude,objc.ObjCBlock<ffi.Void Function()>? completionHandler}) {
_objc_msgSend_b0p9a0(this.ref.pointer, _sel_flyToCamera_withDuration_peakAltitude_completionHandler_, camera$1.ref.pointer, withDuration, peakAltitude, completionHandler?.ref.pointer ?? ffi.nullptr);

}