message property
String
get
message
Implementation
String get message {
switch (this) {
case MobileScannerErrorCode.controllerUninitialized:
return 'The MobileScannerController has not been initialized. Call start() before using it.';
case MobileScannerErrorCode.permissionDenied:
return 'Camera permission denied.';
case MobileScannerErrorCode.unsupported:
return 'Scanning is not supported on this device.';
case MobileScannerErrorCode.controllerAlreadyInitialized:
return 'The MobileScannerController is already running. Stop it before starting again.';
case MobileScannerErrorCode.controllerDisposed:
return 'The MobileScannerController was used after it was disposed.';
case MobileScannerErrorCode.genericError:
return 'An unexpected error occurred.';
}
}