BarcodeCountIcon class

Wraps a pair of ScanditIcon instances used as a highlight icon by BarcodeCountView. The recognized and not-in-list highlights use BarcodeCountIcon only when the view BarcodeCountView.style is BarcodeCountViewStyle.icon. Accepted and rejected highlights always use BarcodeCountIcon, regardless of the view style. As a consequence, in BarcodeCountViewStyle.dot BarcodeCountView.acceptedBrush and BarcodeCountView.rejectedBrush no longer drive the per-barcode highlight (they still tint the barcode quad outline when manual clustering is enabled); to hide an accepted or rejected highlight, return null from the corresponding listener callback instead of setting the brush to null.

The icon to render is selected at runtime based on the overlay’s color scheme. When the chosen variant is null, no highlight is drawn for that color scheme.

Added in version 8.6.0

Constructors

BarcodeCountIcon({ScanditIcon? defaultIcon, ScanditIcon? accessibleIcon})
Constructs a new BarcodeCountIcon with separate variants for the default and accessible color schemes. Either argument may be null.
BarcodeCountIcon.fromJSON(Map<String, dynamic> json)
factory

Properties

accessibleIcon → ScanditIcon?
The icon used when the overlay is in the accessible color scheme. If null, no highlight is drawn in the accessible color scheme.
final
defaultIcon → ScanditIcon?
The icon used when the overlay is in the default color scheme. If null, no highlight is drawn in the default color scheme.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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