OperationResult enum
OperationResult is an enum that indicates the result of each operation performed by the backend. It contains the same causes as SANE_Status plus additional statuses that come from the IPC layers and image conversion stages.
Values
- unknown → const OperationResult
-
An unknown or generic failure occurred.
const OperationResult('UNKNOWN') - success → const OperationResult
-
Operation succeeded.
const OperationResult('SUCCESS') - unsupported → const OperationResult
-
The operation is not supported.
const OperationResult('UNSUPPORTED') - cancelled → const OperationResult
-
The operation was cancelled.
const OperationResult('CANCELLED') - deviceBusy → const OperationResult
-
The device is busy.
const OperationResult('DEVICE_BUSY') - invalid → const OperationResult
-
Data or argument is invalid.
const OperationResult('INVALID') - wrongType → const OperationResult
-
Value is the wrong type for the underlying option.
const OperationResult('WRONG_TYPE') - eof → const OperationResult
-
No more data is available.
const OperationResult('EOF') - adfJammed → const OperationResult
-
The document feeder is jammed.
const OperationResult('ADF_JAMMED') - adfEmpty → const OperationResult
-
The document feeder is empty.
const OperationResult('ADF_EMPTY') - coverOpen → const OperationResult
-
The flatbed cover is open.
const OperationResult('COVER_OPEN') - ioError → const OperationResult
-
An error occurred while communicating with the device.
const OperationResult('IO_ERROR') - accessDenied → const OperationResult
-
The device requires authentication.
const OperationResult('ACCESS_DENIED') - noMemory → const OperationResult
-
Not enough memory was available to complete the operation.
const OperationResult('NO_MEMORY') - unreachable → const OperationResult
-
The device was not reachable.
const OperationResult('UNREACHABLE') - missing → const OperationResult
-
The device was disconnected.
const OperationResult('MISSING') - internalError → const OperationResult
-
An internal error occurred.
const OperationResult('INTERNAL_ERROR')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toJS → String
-
no setter
- value → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJS(
String value) → OperationResult
Constants
-
values
→ const List<
OperationResult> - A constant List of the values in this enum, in order of their declaration.