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
2023-12-07 10:50:15 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0be282eac3d4495a7aa13a353af49f81074a365b
0be282ea
1 parent
d6be818e
make the barcode reader getters throw if not implemented
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
lib/src/web/barcode_reader.dart
lib/src/web/barcode_reader.dart
View file @
0be282e
...
...
@@ -14,10 +14,14 @@ abstract class BarcodeReader {
const
BarcodeReader
();
/// Whether the scanner is currently scanning for barcodes.
bool
get
isScanning
;
bool
get
isScanning
{
throw
UnimplementedError
(
'isScanning has not been implemented.'
);
}
/// Get the size of the output of the video stream.
Size
get
videoSize
;
Size
get
videoSize
{
throw
UnimplementedError
(
'videoSize has not been implemented.'
);
}
/// The id for the script tag that loads the barcode library.
///
...
...
@@ -26,7 +30,9 @@ abstract class BarcodeReader {
String
get
scriptId
=>
'mobile-scanner-barcode-reader'
;
/// The script url for the barcode library.
String
get
scriptUrl
;
String
get
scriptUrl
{
throw
UnimplementedError
(
'scriptUrl has not been implemented.'
);
}
/// Start detecting barcodes.
///
...
...
Please
register
or
login
to post a comment