Navaron Bracke

add controller already initialized error code

  1 +import 'package:mobile_scanner/src/mobile_scanner_controller.dart';
  2 +
1 /// This enum defines the different error codes for the mobile scanner. 3 /// This enum defines the different error codes for the mobile scanner.
2 enum MobileScannerErrorCode { 4 enum MobileScannerErrorCode {
  5 + /// The controller was already started.
  6 + ///
  7 + /// The controller should be stopped using [MobileScannerController.stop],
  8 + /// before restarting it.
  9 + controllerAlreadyInitialized,
  10 +
3 /// The controller was used 11 /// The controller was used
4 /// while it was not yet initialized using [MobileScannerController.start]. 12 /// while it was not yet initialized using [MobileScannerController.start].
5 controllerUninitialized, 13 controllerUninitialized,