setZoom method

Future<void> setZoom(
  1. double value
)

Sets the camera zoom.

Value can only be in the range from 0 to 1

Implementation

Future<void> setZoom(double value) async {
  assert(
    value >= 0 && value <= 1,
    "Value can only be in the range from 0 to 1",
  );
  return _barcodeScannerState?._setZoom(value);
}