SelectionOverlayConfiguration class

Barcode Selection Overlay configuration

Annotations
  • @JsonSerializable(includeIfNull: false, createFactory: false)

Constructors

SelectionOverlayConfiguration.new({bool overlayEnabled = true, bool automaticSelectionEnabled = false, BarcodeOverlayTextFormat textFormat = BarcodeOverlayTextFormat.CODE_AND_TYPE, Color? polygonColor = Colors.white, Color? textColor = Colors.black, Color? textContainerColor = Colors.white, Color? highlightedPolygonColor = Colors.black, Color? highlightedTextColor = Colors.white, Color? highlightedTextContainerColor = Colors.black})

Properties

automaticSelectionEnabled bool
If enabled, newly detected barcodes will be automatically selected. Otherwise the user has to tap on a barcode on the selection overlay to select it. Has no effect with disabled overlay. Defaults to False.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
highlightedPolygonColor Color?
The color of the polygon in the selection overlay, when highlighted.
getter/setter pair
highlightedTextColor Color?
The color of the text in the selection overlay, when highlighted.
getter/setter pair
highlightedTextContainerColor Color?
The color of the texts background in the selection overlay, when highlighted.
getter/setter pair
overlayEnabled bool
Whether the barcode selection overlay is enabled or not.
getter/setter pair
polygonColor Color?
The color of the polygon in the selection overlay.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor Color?
The color of the text in the selection overlay.
getter/setter pair
textContainerColor Color?
The color of the texts background in the selection overlay.
getter/setter pair
textFormat BarcodeOverlayTextFormat
Define the way of how to show barcode data with selection overlay.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited