Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -336,7 +336,8 @@ class MobileScannerController { | @@ -336,7 +336,8 @@ class MobileScannerController { | ||
| 336 | return; | 336 | return; |
| 337 | } | 337 | } |
| 338 | 338 | ||
| 339 | - final TorchState newState = torchState.value == TorchState.off ? TorchState.on : TorchState.off; | 339 | + final TorchState newState = |
| 340 | + torchState.value == TorchState.off ? TorchState.on : TorchState.off; | ||
| 340 | 341 | ||
| 341 | await _methodChannel.invokeMethod('torch', newState.rawValue); | 342 | await _methodChannel.invokeMethod('torch', newState.rawValue); |
| 342 | } | 343 | } |
-
Please register or login to post a comment