zoomTo method
Programmatically zooms the editor to a given offset and/or scale.
If offset
or scale
is null, defaults will be used.
Implementation
void zoomTo({Offset? offset, double? scale}) {
interactiveViewer.currentState?.zoomTo(offset: offset, scale: scale);
}