Showing
1 changed file
with
8 additions
and
3 deletions
| @@ -42,7 +42,8 @@ abstract class BarcodeReader { | @@ -42,7 +42,8 @@ abstract class BarcodeReader { | ||
| 42 | 42 | ||
| 43 | final Completer<void> completer = Completer(); | 43 | final Completer<void> completer = Completer(); |
| 44 | 44 | ||
| 45 | - final HTMLScriptElement script = (document.createElement('script') as HTMLScriptElement) | 45 | + final HTMLScriptElement script = |
| 46 | + (document.createElement('script') as HTMLScriptElement) | ||
| 46 | ..id = scriptId | 47 | ..id = scriptId |
| 47 | ..async = true | 48 | ..async = true |
| 48 | ..defer = false | 49 | ..defer = false |
| @@ -65,7 +66,8 @@ abstract class BarcodeReader { | @@ -65,7 +66,8 @@ abstract class BarcodeReader { | ||
| 65 | const MobileScannerException( | 66 | const MobileScannerException( |
| 66 | errorCode: MobileScannerErrorCode.genericError, | 67 | errorCode: MobileScannerErrorCode.genericError, |
| 67 | errorDetails: MobileScannerErrorDetails( | 68 | errorDetails: MobileScannerErrorDetails( |
| 68 | - message: 'Could not load the BarcodeReader script due to a network error.', | 69 | + message: |
| 70 | + 'Could not load the BarcodeReader script due to a network error.', | ||
| 69 | ), | 71 | ), |
| 70 | ), | 72 | ), |
| 71 | ); | 73 | ); |
| @@ -81,7 +83,10 @@ abstract class BarcodeReader { | @@ -81,7 +83,10 @@ abstract class BarcodeReader { | ||
| 81 | /// | 83 | /// |
| 82 | /// The [options] are used to configure the barcode reader. | 84 | /// The [options] are used to configure the barcode reader. |
| 83 | /// The [containerElement] will become the parent of the video output element. | 85 | /// The [containerElement] will become the parent of the video output element. |
| 84 | - Future<void> start(StartOptions options, {required HTMLElement containerElement}) { | 86 | + Future<void> start( |
| 87 | + StartOptions options, { | ||
| 88 | + required HTMLElement containerElement, | ||
| 89 | + }) { | ||
| 85 | throw UnimplementedError('start() has not been implemented.'); | 90 | throw UnimplementedError('start() has not been implemented.'); |
| 86 | } | 91 | } |
| 87 | 92 |
-
Please register or login to post a comment