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
-
Whether/how the option can be changed.
getter/setter pair
-
constraint
↔ OptionConstraint?
-
Constraint on possible values.
getter/setter pair
-
description
↔ String
-
Longer description of the option.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isActive
↔ bool
-
Option is active and can be set/retrieved. If false, the
value
field will not be set.
getter/setter pair
-
isAdvanced
↔ bool
-
UI should not display this option by default.
getter/setter pair
-
isAutoSettable
↔ bool
-
Can be automatically set by the backend.
getter/setter pair
-
isDetectable
↔ bool
-
Can be detected from software.
getter/setter pair
-
isEmulated
↔ bool
-
Emulated by the backend if true.
getter/setter pair
-
isInternal
↔ bool
-
Option is used for internal configuration and should never be displayed
in the UI.
getter/setter pair
-
name
↔ String
-
Option name using lowercase a-z, numbers, and dashes.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
title
↔ String
-
Printable one-line title.
getter/setter pair
-
toJS
→ ScannerOption
-
no setter
-
type
↔ OptionType
-
The type that
value
will contain and that is needed for
setting this option.
getter/setter pair
-
unit
↔ OptionUnit
-
Unit of measurement for this option.
getter/setter pair
-
value
↔ Object?
-
Current value of the option if relevant. Note the type passed here must
match the 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