BarcodePosition class final
The four corners of a barcode, in pixels of the source image.
Corners follow the symbol, so for a rotated barcode topLeft is the symbol's own top-left corner, not the one closest to the image origin.
- Annotations
Constructors
- BarcodePosition({required Offset topLeft, required Offset topRight, required Offset bottomRight, required Offset bottomLeft})
-
Creates a position from its four corners.
const
Properties
- bottomLeft → Offset
-
The symbol's bottom-left corner.
final
- bottomRight → Offset
-
The symbol's bottom-right corner.
final
- bounds → Rect
-
The smallest axis-aligned rectangle containing all corners.
no setter
- center → Offset
-
The centre of the four corners.
no setter
-
corners
→ List<
Offset> -
The corners in order: top-left, top-right, bottom-right, bottom-left.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topLeft → Offset
-
The symbol's top-left corner.
final
- topRight → Offset
-
The symbol's top-right corner.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override