Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
p-mazhnik
2022-12-08 14:30:58 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
96ddf1cac31e4eb698bf4654cc6d9eeb3c5fa844
96ddf1ca
1 parent
d958afa4
fix hasTorch getter
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
lib/src/mobile_scanner_controller.dart
lib/src/mobile_scanner_controller.dart
View file @
96ddf1c
...
...
@@ -106,13 +106,14 @@ class MobileScannerController {
///
/// Throws an error if the controller is not initialized.
bool
get
hasTorch
{
if
(
_hasTorch
==
null
)
{
final
hasTorch
=
hasTorchState
.
value
;
if
(
hasTorch
==
null
)
{
throw
const
MobileScannerException
(
errorCode:
MobileScannerErrorCode
.
controllerUninitialized
,
);
}
return
_hasTorch
!
;
return
hasTorch
;
}
/// Set the starting arguments for the camera
...
...
Please
register
or
login
to post a comment