Showing
3 changed files
with
4 additions
and
4 deletions
| @@ -2,11 +2,13 @@ library mobile_scanner; | @@ -2,11 +2,13 @@ library mobile_scanner; | ||
| 2 | 2 | ||
| 3 | export 'src/enums/camera_facing.dart'; | 3 | export 'src/enums/camera_facing.dart'; |
| 4 | export 'src/enums/detection_speed.dart'; | 4 | export 'src/enums/detection_speed.dart'; |
| 5 | +export 'src/enums/mobile_scanner_error_code.dart'; | ||
| 5 | export 'src/enums/mobile_scanner_state.dart'; | 6 | export 'src/enums/mobile_scanner_state.dart'; |
| 6 | export 'src/enums/ratio.dart'; | 7 | export 'src/enums/ratio.dart'; |
| 7 | export 'src/enums/torch_state.dart'; | 8 | export 'src/enums/torch_state.dart'; |
| 8 | export 'src/mobile_scanner.dart'; | 9 | export 'src/mobile_scanner.dart'; |
| 9 | export 'src/mobile_scanner_controller.dart'; | 10 | export 'src/mobile_scanner_controller.dart'; |
| 11 | +export 'src/mobile_scanner_exception.dart'; | ||
| 10 | export 'src/objects/barcode.dart'; | 12 | export 'src/objects/barcode.dart'; |
| 11 | export 'src/objects/barcode_capture.dart'; | 13 | export 'src/objects/barcode_capture.dart'; |
| 12 | export 'src/objects/mobile_scanner_arguments.dart'; | 14 | export 'src/objects/mobile_scanner_arguments.dart'; |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | enum MobileScannerErrorCode { | 2 | enum MobileScannerErrorCode { |
| 3 | /// The controller was used | 3 | /// The controller was used |
| 4 | /// while it was not yet initialized using [MobileScannerController.start]. | 4 | /// while it was not yet initialized using [MobileScannerController.start]. |
| 5 | - controllerUnititialized, | 5 | + controllerUninitialized, |
| 6 | 6 | ||
| 7 | /// A generic error occurred. | 7 | /// A generic error occurred. |
| 8 | /// | 8 | /// |
| @@ -6,8 +6,6 @@ import 'package:flutter/foundation.dart'; | @@ -6,8 +6,6 @@ import 'package:flutter/foundation.dart'; | ||
| 6 | import 'package:flutter/services.dart'; | 6 | import 'package:flutter/services.dart'; |
| 7 | import 'package:mobile_scanner/mobile_scanner.dart'; | 7 | import 'package:mobile_scanner/mobile_scanner.dart'; |
| 8 | import 'package:mobile_scanner/src/barcode_utility.dart'; | 8 | import 'package:mobile_scanner/src/barcode_utility.dart'; |
| 9 | -import 'package:mobile_scanner/src/enums/mobile_scanner_error_code.dart'; | ||
| 10 | -import 'package:mobile_scanner/src/mobile_scanner_exception.dart'; | ||
| 11 | 9 | ||
| 12 | /// The [MobileScannerController] holds all the logic of this plugin, | 10 | /// The [MobileScannerController] holds all the logic of this plugin, |
| 13 | /// where as the [MobileScanner] class is the frontend of this plugin. | 11 | /// where as the [MobileScanner] class is the frontend of this plugin. |
| @@ -235,7 +233,7 @@ class MobileScannerController { | @@ -235,7 +233,7 @@ class MobileScannerController { | ||
| 235 | 233 | ||
| 236 | if (hasTorch == null) { | 234 | if (hasTorch == null) { |
| 237 | throw const MobileScannerException( | 235 | throw const MobileScannerException( |
| 238 | - errorCode: MobileScannerErrorCode.controllerUnititialized, | 236 | + errorCode: MobileScannerErrorCode.controllerUninitialized, |
| 239 | ); | 237 | ); |
| 240 | } else if (!hasTorch) { | 238 | } else if (!hasTorch) { |
| 241 | return; | 239 | return; |
-
Please register or login to post a comment