ryuta46

style: remove extra new lines. fix typo.

... ... @@ -297,5 +297,4 @@ class MobileScanner(
camera!!.cameraControl.setZoomRatio(1f)
}
}
... ...
... ... @@ -74,7 +74,6 @@ class MobileScannerHandler(
barcodeHandler.publishEvent(mapOf("name" to "zoomScaleState", "data" to zoomScale))
}
init {
methodChannel = MethodChannel(binaryMessenger,
"dev.steenbakker.mobile_scanner/scanner/method")
... ... @@ -240,7 +239,7 @@ class MobileScannerHandler(
mobileScanner!!.resetScale()
result.success(null)
} catch (e: ZoomWhenStopped) {
result.error("MobileScanner", "Called setScale() while stopped!", null)
result.error("MobileScanner", "Called resetScale() while stopped!", null)
}
}
... ...
... ... @@ -40,7 +40,6 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega
/// When zoom scale is changes, this callback will be called
let zoomScaleChangeCallback: ZoomScaleChangeCallback
/// If provided, the Flutter registry will be used to send the output of the CaptureOutput to a Flutter texture.
private let registry: FlutterTextureRegistry?
... ...
... ... @@ -88,7 +88,6 @@ class MobileScannerController {
/// A notifier that provides zoomScale.
final ValueNotifier<double> zoomScaleState = ValueNotifier(0.0);
bool isStarting = false;
/// A notifier that provides availability of the Torch (Flash)
... ... @@ -327,7 +326,6 @@ class MobileScannerController {
await _methodChannel.invokeMethod('resetScale');
}
/// Disposes the MobileScannerController and closes all listeners.
///
/// If you call this, you cannot use this controller object anymore.
... ...