setZoom method

Future<void> setZoom(
  1. double zoom
)

Implementation

Future<void> setZoom(double zoom) async {
  final UCameraRange range = value.capabilities.zoom;
  if (range.isFixed) return;
  final double clamped = range.clamp(zoom);
  await _set("setZoom", <String, Object?>{"zoom": clamped});
  _emit(value.copyWith(zoom: clamped));
}