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
getter/setter pair
- 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
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
getter/setter pair
- 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.
getter/setter pair
- labelLengthMax ↔ double?
-
Sets the maximum label length in inches.
Values
1.0 to 39.0 inches
getter/setter pair
- labelTop ↔ int?
-
Sets the label’s top margin offset in dots
Values
"-60 to 60"
getter/setter pair
- leftPosition ↔ int?
-
Sets the label’s left margin offset in dots.
Values
"-9999 to 9999"
getter/setter pair
- 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"
getter/setter pair
- 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
getter/setter pair
- 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"
getter/setter pair
- printMode ↔ PrintMode?
-
Sets the print mode
Values
• "tear off"
• "peel off"
• "rewind"
• "cutter"
• "delayed cut"
• "linerless peel"
• "linerless rewind"
• "linerless tear"
• "applicator"
getter/setter pair
- printSpeed ↔ double?
-
Instructs the printer to set the media print speed.
Values
2-12 inches per second (ips)
getter/setter pair
- printWidth ↔ int?
-
This command sets the print width of the label
Values
any printhead width
getter/setter pair
- reprintMode ↔ ReprintMode?
-
Turns on/off the reprint mode.
Values
• "on"
• "off"
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tearOff ↔ int?
-
To set the tear-off position
Values
"-120" to "120"
getter/setter pair
- zplMode ↔ ZPLMode?
-
Sets the ZPL mode.
Values
• "zpl"
• "zpl II"
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- FIELD_DARKNESS → const String
- Fields name
- FIELD_DEVICE_FRIENDLY_NAME → const String
- FIELD_DEVICE_PRINT_HEAD_RESOLUTION → const String
- FIELD_FIRMWARE → const String
- FIELD_HEAD_CLOSE_ACTION → const String
- FIELD_LABEL_LENGTH → const String
- FIELD_LABEL_LENGTH_MAX → const String
- FIELD_LABEL_TOP → const String
- FIELD_LEFT_POSITION → const String
- FIELD_LINK_OS_VERSION → const String
- FIELD_MEDIA_TYPE → const String
- FIELD_POWER_UP_ACTION → const String
- FIELD_PRINT_METHOD → const String
- FIELD_PRINT_MODE → const String
- FIELD_PRINT_SPEED → const String
- FIELD_PRINT_WIDTH → const String
- FIELD_PRINTER_DPI → const String
- FIELD_PRINTER_MODEL_NAME → const String
- FIELD_REPRINT_MODE → const String
- FIELD_TEAR_OFF → const String
- FIELD_ZPL_MODE → const String