CameraUpdate.zoomBy constructor
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
factory CameraUpdate.zoomBy(double amount, [Offset? focus]) {
if (focus == null) {
return CameraUpdate._(<dynamic>['zoomBy', amount]);
} else {
return CameraUpdate._(<dynamic>[
'zoomBy',
amount,
<double>[focus.dx, focus.dy],
]);
}
}