zoomBy static method

CameraUpdate zoomBy(
  1. double amount,
  2. [Offset? focus]
)

Returns a camera update that modifies the camera zoom level by the specified amount. The optional focus is a screen point whose underlying geographical location should be invariant, if possible, by the movement.

Implementation

static CameraUpdate zoomBy(double amount, [Offset? focus]) {
  if (focus == null) {
    return CameraUpdate._(<Object>['zoomBy', amount]);
  } else {
    return CameraUpdate._(<Object>[
      'zoomBy',
      amount,
      <double>[focus.dx, focus.dy],
    ]);
  }
}