PrintConfig class

Configuration for printing. labelSize specifies the size of the label to print on. printSpeed is the speed of the printer, default is 1. packetSize is the size of each packet sent to the printer, default is 64. halfTones indicates whether to use half-tones for printing, default is false. dryRun indicates whether to simulate the print job without sending data to the printer, default is false.

Constructors

PrintConfig.new({required Size labelSize, int printSpeed = 1, int packetSize = 64, bool halfTones = false, bool dryRun = false})

Properties

dryRun bool
final
halfTones bool
final
hashCode int
The hash code for this object.
no setterinherited
labelSize Size
Size of the label to print on in millimeters.
final
packetSize int
final
printSpeed int
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
withRotatedLabel() PrintConfig

Operators

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