OptionType enum
The type of an option. This is the same set of types as SANE_Value_Type.
Values
- unknown → const OptionType
-
Unknown option type.
value
will be unset.const OptionType('UNKNOWN')
- bool → const OptionType
-
true/false only.
value
will be a boolean.const OptionType('BOOL')
- int → const OptionType
-
Signed 32-bit integer.
value
will be long or long[], depending on whether the option takes more than one value.const OptionType('INT')
- fixed → const OptionType
-
Double in the range -32768-32767.9999 with a resolution of 1/65535.
value
will be double or double[] depending on whether the option takes more than one value.const OptionType('FIXED')
- string → const OptionType
-
A sequence of any bytes except NUL ('\0').
value
will be a DOMString.const OptionType('STRING')
-
Hardware button or toggle. No value.
const OptionType('BUTTON')
- group → const OptionType
-
Grouping option. No value. This is included for compatibility, but will not normally be returned in
ScannerOption
values. UsegetOptionGroups()
to retrieve the list of groups with their member options.const OptionType('GROUP')
Properties
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) → OptionType
Constants
-
values
→ const List<
OptionType> - A constant List of the values in this enum, in order of their declaration.