ScanWindowOverlay class

This widget represents an overlay that paints a scan window cutout.

Inheritance

Constructors

ScanWindowOverlay({required MobileScannerController controller, required Rect scanWindow, Key? key, Color borderColor = Colors.white, BorderRadius borderRadius = BorderRadius.zero, StrokeCap borderStrokeCap = StrokeCap.butt, StrokeJoin borderStrokeJoin = StrokeJoin.miter, PaintingStyle borderStyle = PaintingStyle.stroke, double borderWidth = 2.0, Color color = const Color(0x80000000)})
Construct a new ScanWindowOverlay instance.
const

Properties

borderColor Color
The color for the scan window border.
final
borderRadius BorderRadius
The border radius for the scan window and its border.
final
borderStrokeCap StrokeCap
The stroke cap for the border around the scan window.
final
borderStrokeJoin StrokeJoin
The stroke join for the border around the scan window.
final
borderStyle PaintingStyle
The style for the border around the scan window.
final
borderWidth double
The width for the border around the scan window.
final
color Color
The color for the scan window box.
final
controller MobileScannerController
The controller that manages the camera preview.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanWindow Rect
The scan window for the overlay.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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