updateZoom method
Implementation
void updateZoom(double scale) {
_zoom = (_previousZoom * scale)
.clamp(config.minZoom, config.maxZoom)
.toDouble();
_calculateOffsets();
triggerUpdate.value++;
}
void updateZoom(double scale) {
_zoom = (_previousZoom * scale)
.clamp(config.minZoom, config.maxZoom)
.toDouble();
_calculateOffsets();
triggerUpdate.value++;
}