DetectionOutlineConfig class

Configuration for detection outlines.

Constructors

DetectionOutlineConfig({double padding = 10, double margin = 5, double outlineWidth = 2, double cornerRadius = 5, Color activeOutlineColor = Colors.green, Color inactiveOutlineColor = const Color.fromRGBO(255, 255, 255, 0.2), bool enableLabel = true, DetectionLabelPosition labelPosition = DetectionLabelPosition.bottomLeft, Color labelColor = Colors.white, double labelSize = 12})

Properties

activeOutlineColor Color
Outline color when the detection is inside the scanner cutout. Defaults to Colors.green.
final
cornerRadius double
Corner radius of the displayed outlines. Defaults to 5.
final
enableLabel bool
Whether to display labels containing the scanned value. Defaults to true.
final
hashCode int
The hash code for this object.
no setterinherited
inactiveOutlineColor Color
Outline color when the detection is outside the scanner cutout. Defaults to a mostly transparent white.
final
labelColor Color
Color of the displayed label. Defaults to Colors.white.
final
labelPosition DetectionLabelPosition
Location of the value label. Defaults to DetectionLabelPosition.bottomLeft.
final
labelSize double
Font size of the displayed label. Defaults to 12.
final
margin double
Outer spacing between the displayed outline and the label. Defaults to 5.
final
outlineWidth double
Width of the displayed outline. Defaults to 2.
final
padding double
Inner spacing between the actual detection and the displayed outline. Defaults to 10.
final
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
toString() String
A string representation of this object.
inherited

Operators

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