OptionType enum

The data type of an option.

Inheritance
Available extensions

Values

unknown → const OptionType

The option's data type is unknown. The value property will be unset.

const OptionType('UNKNOWN')
bool → const OptionType

The value property will be one of true</code or false`.

const OptionType('BOOL')
int → const OptionType

A signed 32-bit integer. The value property will be long or long[], depending on whether the option takes more than one value.

const OptionType('INT')
fixed → const OptionType

A double in the range -32768-32767.9999 with a resolution of 1/65535. The value property will be double or double[] depending on whether the option takes more than one value. Double values that can't be exactly represented will be rounded to the available range and precision.

const OptionType('FIXED')
string → const OptionType

A sequence of any bytes except NUL ('\0'). The value property will be a DOMString.

const OptionType('STRING')
button → const OptionType

An option of this type has no value. Instead, setting an option of this type causes an option-specific side effect in the scanner driver. For example, a button-typed option could be used by a scanner driver to provide a means to select default values or to tell an automatic document feeder to advance to the next sheet of paper.

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
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 → JSString
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(JSString value) → OptionType

Constants

values → const List<OptionType>
A constant List of the values in this enum, in order of their declaration.