easeCamera method

Future<bool?> easeCamera(
  1. CameraUpdate cameraUpdate, {
  2. Duration? duration,
  3. CameraAnimationInterpolation? interpolation,
})

Eases the camera with an explicit easing curve.

Unlike animateCamera, which always uses the platform's default ease-in/ease-out, this lets you pick the interpolation. Use CameraAnimationInterpolation.linear when continuously following a moving target (e.g. a GPS position): the default eased curve decelerates at the end of every call, so chaining calls produces a visible stutter at each hand-off.

See CameraAnimationInterpolation for per-platform support - Android's native SDK only distinguishes linear from eased.

It returns true if the camera was successfully moved and false if the movement was canceled.

Implementation

Future<bool?> easeCamera(
  CameraUpdate cameraUpdate, {
  Duration? duration,
  CameraAnimationInterpolation? interpolation,
}) async {
  return _vietmapGLPlatform.easeCamera(
    cameraUpdate,
    duration: duration,
    interpolation: interpolation,
  );
}