PrinterSettings class

Created by luis901101 on 2020-02-10.

Constructors

PrinterSettings({double darkness, double printSpeed, int tearOff, MediaType mediaType, PrintMethod printMethod, int printWidth, int labelLength, double labelLengthMax, ZPLMode zplMode, PowerUpAction powerUpAction, HeadCloseAction headCloseAction, int labelTop, int leftPosition, PrintMode printMode, ReprintMode reprintMode, String printerModelName, String deviceFriendlyName, String firmware, String linkOSVersion, String printerDpi, String devicePrintHeadResolution})
PrinterSettings.defaultSettings()
factory
PrinterSettings.fromMap(Map map)
factory

Properties

darkness double
To set the darkness and relative darkness Values "0.0" to "30.0" = darkness "-0.1" to "-30.0" and "+0.1" to "+30.0" = incremental adjustments
read / write
deviceFriendlyName String
Shows the name assigned to the printer
final
devicePrintHeadResolution String
Shows the resolution of the print head in dots per millimeter (dpmm) as an integer Valid values are "6dpmm", "8dpmm", "12dpmm", and "24dpmm".
final
firmware String
Shows the printer’s firmware version
final
headCloseAction HeadCloseAction
This command sets what happens to the media after the printhead is closed and the printer is taken out of pause. Values • "feed" = feed to the first web after sensor • "calibrate" = is used to force a label length measurement and adjust the media and ribbon sensor values. • "length" = is used to set the label length. Depending on the size of the label, the printer feeds one or more blank labels. • "no motion" = no media feed • "short cal" = short calibration
read / write
labelLength int
Defines the length of the label. This is necessary when using continuous media (media that is not divided into separate labels by gaps, spaces, notches, slots, or holes). Values 1 to 32000, (in dots) not to exceed the maximum label length. While the printer accepts any value for this parameter, the amount of memory installed determines the maximum length of the label. [...]
read / write
labelLengthMax double
Sets the maximum label length in inches. Values 1.0 to 39.0 inches
read / write
labelTop int
Sets the label’s top margin offset in dots Values "-60 to 60"
read / write
leftPosition int
Sets the label’s left margin offset in dots. Values "-9999 to 9999"
read / write
linkOSVersion String
Shows the version of the Link-OS TM feature set that is supported by the printer.
final
mediaType MediaType
To set the media type used in the printer Values • "continuous" • "gap/notch" • "mark"
read / write
powerUpAction PowerUpAction
To set the media motion and calibration setting at printer power up Values • "feed" = feed to the first web after sensor • "calibrate" = is used to force a label length measurement and adjust the media and ribbon sensor values. • "length" = is used to set the label length. Depending on the size of the label, the printer feeds one or more blank labels. • "no motion" = no media feed • "short cal" = short calibration
read / write
printerDpi String
Shows the resolution of the print head in dots per inch as an integer.
final
printerModelName String
Shows the manufacturer and model name
final
printMethod PrintMethod
To set the print method. Values • "thermal trans" • "direct thermal"
read / write
printMode PrintMode
Sets the print mode Values • "tear off" • "peel off" • "rewind" • "cutter" • "delayed cut" • "linerless peel" • "linerless rewind" • "linerless tear" • "applicator"
read / write
printSpeed double
Instructs the printer to set the media print speed. Values 2-12 inches per second (ips)
read / write
printWidth int
This command sets the print width of the label Values any printhead width
read / write
reprintMode ReprintMode
Turns on/off the reprint mode. Values • "on" • "off"
read / write
tearOff int
To set the tear-off position Values "-120" to "120"
read / write
zplMode ZPLMode
Sets the ZPL mode. Values • "zpl" • "zpl II"
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toMap() Map<String, dynamic>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

FIELD_DARKNESS → const String
Fields name
"darkness"
FIELD_DEVICE_FRIENDLY_NAME → const String
"deviceFriendlyName"
FIELD_DEVICE_PRINT_HEAD_RESOLUTION → const String
"devicePrintHeadResolution"
FIELD_FIRMWARE → const String
"firmware"
FIELD_HEAD_CLOSE_ACTION → const String
"headCloseAction"
FIELD_LABEL_LENGTH → const String
"labelLength"
FIELD_LABEL_LENGTH_MAX → const String
"labelLengthMax"
FIELD_LABEL_TOP → const String
"labelTop"
FIELD_LEFT_POSITION → const String
"leftPosition"
"linkOSVersion"
FIELD_MEDIA_TYPE → const String
"mediaType"
FIELD_POWER_UP_ACTION → const String
"powerUpAction"
FIELD_PRINT_METHOD → const String
"printMethod"
FIELD_PRINT_MODE → const String
"printMode"
FIELD_PRINT_SPEED → const String
"printSpeed"
FIELD_PRINT_WIDTH → const String
"printWidth"
FIELD_PRINTER_DPI → const String
"printerDpi"
FIELD_PRINTER_MODEL_NAME → const String
"printerModelName"
FIELD_REPRINT_MODE → const String
"reprintMode"
FIELD_TEAR_OFF → const String
"tearOff"
FIELD_ZPL_MODE → const String
"zplMode"