OptionType enum

The type of an option. This is the same set of types as SANE_Value_Type.

Inheritance
Available extensions

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')
button → const OptionType

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. Use getOptionGroups() 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
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.