ScannerOption class

Constructors

ScannerOption({required String name, required String title, required String description, required OptionType type, required OptionUnit unit, Object? value, OptionConstraint? constraint, required bool isDetectable, required Configurability configurability, required bool isAutoSettable, required bool isEmulated, required bool isActive, required bool isAdvanced, required bool isInternal})
ScannerOption.fromJS(ScannerOption _wrapped)

Properties

configurability ↔ Configurability
Indicates whether and how the option can be changed.
getter/setter pair
constraint ↔ OptionConstraint?
Defines OptionConstraint on the current scanner option.
getter/setter pair
description ↔ String
A longer description of the option.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isActive ↔ bool
Indicates the option is active and can be set or retrieved. If false, the value property will not be set.
getter/setter pair
isAdvanced ↔ bool
Indicates that the UI should not display this option by default.
getter/setter pair
isAutoSettable ↔ bool
Can be automatically set by the scanner driver.
getter/setter pair
isDetectable ↔ bool
Indicates that this option can be detected from software.
getter/setter pair
isEmulated ↔ bool
Emulated by the scanner driver if true.
getter/setter pair
isInternal ↔ bool
Indicates that the option is used for internal configuration and should never be displayed in the UI.
getter/setter pair
name ↔ String
The option name using lowercase ASCII letters, numbers, and dashes. Diacritics are not allowed.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title ↔ String
A printable one-line title.
getter/setter pair
toJS → ScannerOption
no setter
type ↔ OptionType
The data type contained in the value property, which is needed for setting this option.
getter/setter pair
unit ↔ OptionUnit
The unit of measurement for this option.
getter/setter pair
value ↔ Object?
The current value of the option, if relevant. Note that the data type of this property must match the data type specified in type.
getter/setter pair

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