handleScaleUpdate method
Implementation
Future<void> handleScaleUpdate(ScaleUpdateDetails details) async {
// When there are not exactly two fingers on screen don't scale
if (cameraController == null || pointers != 2) {
return;
}
_currentScale = (_baseScale * details.scale).clamp(min, max);
await cameraController!.setZoomLevel(_currentScale);
}