SunmiQrcodeStyle class
A class that represents the style for printing QR codes on Sunmi printers.
This class encapsulates the size, error correction level, and alignment of a QR code.
Constructors
- SunmiQrcodeStyle({int qrcodeSize = 4, SunmiQrcodeLevel errorLevel = SunmiQrcodeLevel.LEVEL_L, SunmiPrintAlign align = SunmiPrintAlign.CENTER})
-
Factory constructor to create a SunmiQrcodeStyle object with default values
and optional customizations.
factory
Properties
- align → SunmiPrintAlign
-
The alignment of the QR code on the page or print area.
final
- errorLevel → SunmiQrcodeLevel
-
The error correction level for the QR code.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- qrcodeSize → int
-
The size of the QR code.
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
-
toMap(
) → Map< String, dynamic> - Converts the SunmiQrcodeStyle object to a map for easy transfer or serialization.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited