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
Navaron Bracke
2022-11-20 15:27:15 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3733ca52e5bacf11626e0f17639c1830bcd7682e
3733ca52
1 parent
bc3b7a7c
tweak deprecation message; fix typo
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
lib/src/mobile_scanner_controller.dart
lib/src/mobile_scanner_exception.dart
lib/src/mobile_scanner_controller.dart
View file @
3733ca5
...
...
@@ -17,9 +17,7 @@ class MobileScannerController {
this
.
torchEnabled
=
false
,
this
.
formats
,
this
.
returnImage
=
false
,
@Deprecated
(
'Instead, handle permission errors using the result of the `start()` method.'
,
)
@Deprecated
(
'Instead, use the result of calling `start()` to determine if permissions were granted.'
)
this
.
onPermissionSet
,
})
{
// In case a new instance is created before calling dispose()
...
...
@@ -77,7 +75,7 @@ class MobileScannerController {
EventChannel
(
'dev.steenbakker.mobile_scanner/scanner/event'
);
@Deprecated
(
'Instead,
handle permission errors using the result of the `start()` metho
d.'
,
'Instead,
use the result of calling `start()` to determine if permissions were grante
d.'
,
)
Function
(
bool
permissionGranted
)?
onPermissionSet
;
...
...
lib/src/mobile_scanner_exception.dart
View file @
3733ca5
import
'package:mobile_scanner/src/enums/mobile_scanner_error_code.dart'
;
/// This class represents an exception thro
z
n by the mobile scanner.
/// This class represents an exception thro
w
n by the mobile scanner.
class
MobileScannerException
implements
Exception
{
const
MobileScannerException
({
required
this
.
errorCode
,
...
...
Please
register
or
login
to post a comment