Navaron Bracke

implement error code enum

  1 +/// This enum defines the different error codes for the mobile scanner.
  2 +enum MobileScannerErrorCode {
  3 + /// The controller was used
  4 + /// while it was not yet initialized using [MobileScannerController.start].
  5 + controllerUnititialized,
  6 +
  7 + /// A generic error occurred.
  8 + ///
  9 + /// This error code is used for all errors that do not have a specific error code.
  10 + genericError,
  11 +
  12 + /// The permission to use the camera was denied.
  13 + permissionDenied,
  14 +}