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.
valuewill be unset.const OptionType('UNKNOWN') - bool → const OptionType
-
true/false only.
valuewill be a boolean.const OptionType('BOOL') - int → const OptionType
-
Signed 32-bit integer.
valuewill 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.
valuewill 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').
valuewill 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
ScannerOptionvalues. UsegetOptionGroups()to retrieve the list of groups with their member options.const OptionType('GROUP')
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) → OptionType
Constants
-
values
→ const List<
OptionType> - A constant List of the values in this enum, in order of their declaration.