ryuta46

style: remove extra new lines. fix typo.

@@ -297,5 +297,4 @@ class MobileScanner( @@ -297,5 +297,4 @@ class MobileScanner(
297 camera!!.cameraControl.setZoomRatio(1f) 297 camera!!.cameraControl.setZoomRatio(1f)
298 } 298 }
299 299
300 -  
301 } 300 }
@@ -74,7 +74,6 @@ class MobileScannerHandler( @@ -74,7 +74,6 @@ class MobileScannerHandler(
74 barcodeHandler.publishEvent(mapOf("name" to "zoomScaleState", "data" to zoomScale)) 74 barcodeHandler.publishEvent(mapOf("name" to "zoomScaleState", "data" to zoomScale))
75 } 75 }
76 76
77 -  
78 init { 77 init {
79 methodChannel = MethodChannel(binaryMessenger, 78 methodChannel = MethodChannel(binaryMessenger,
80 "dev.steenbakker.mobile_scanner/scanner/method") 79 "dev.steenbakker.mobile_scanner/scanner/method")
@@ -240,7 +239,7 @@ class MobileScannerHandler( @@ -240,7 +239,7 @@ class MobileScannerHandler(
240 mobileScanner!!.resetScale() 239 mobileScanner!!.resetScale()
241 result.success(null) 240 result.success(null)
242 } catch (e: ZoomWhenStopped) { 241 } catch (e: ZoomWhenStopped) {
243 - result.error("MobileScanner", "Called setScale() while stopped!", null) 242 + result.error("MobileScanner", "Called resetScale() while stopped!", null)
244 } 243 }
245 } 244 }
246 245
@@ -40,7 +40,6 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega @@ -40,7 +40,6 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega
40 /// When zoom scale is changes, this callback will be called 40 /// When zoom scale is changes, this callback will be called
41 let zoomScaleChangeCallback: ZoomScaleChangeCallback 41 let zoomScaleChangeCallback: ZoomScaleChangeCallback
42 42
43 -  
44 /// If provided, the Flutter registry will be used to send the output of the CaptureOutput to a Flutter texture. 43 /// If provided, the Flutter registry will be used to send the output of the CaptureOutput to a Flutter texture.
45 private let registry: FlutterTextureRegistry? 44 private let registry: FlutterTextureRegistry?
46 45
@@ -88,7 +88,6 @@ class MobileScannerController { @@ -88,7 +88,6 @@ class MobileScannerController {
88 /// A notifier that provides zoomScale. 88 /// A notifier that provides zoomScale.
89 final ValueNotifier<double> zoomScaleState = ValueNotifier(0.0); 89 final ValueNotifier<double> zoomScaleState = ValueNotifier(0.0);
90 90
91 -  
92 bool isStarting = false; 91 bool isStarting = false;
93 92
94 /// A notifier that provides availability of the Torch (Flash) 93 /// A notifier that provides availability of the Torch (Flash)
@@ -327,7 +326,6 @@ class MobileScannerController { @@ -327,7 +326,6 @@ class MobileScannerController {
327 await _methodChannel.invokeMethod('resetScale'); 326 await _methodChannel.invokeMethod('resetScale');
328 } 327 }
329 328
330 -  
331 /// Disposes the MobileScannerController and closes all listeners. 329 /// Disposes the MobileScannerController and closes all listeners.
332 /// 330 ///
333 /// If you call this, you cannot use this controller object anymore. 331 /// If you call this, you cannot use this controller object anymore.