LabelaryService class
A service class to interact with the Labelary.com API.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
convertFontToZpl(
Uint8List fontData, String fontFileName, {String? path, String? name, String? chars, Client? client}) → Future< String> - Converts a TrueType Font (.TTF) file into ZPL font commands (~DU, ^CW) using the Labelary API.
-
convertImageToGraphic(
Uint8List imageData, String imageFileName, {LabelaryOutputFormat outputFormat = LabelaryOutputFormat.zpl, Client? client}) → Future< String> - Converts an image file into a ZPL graphic command string (~DG) using the Labelary API.
-
renderFromGenerator(
ZplGenerator generator, {LabelaryOutputFormat outputFormat = LabelaryOutputFormat.png, int? index = 0, LabelaryRotation? rotation, LabelaryPageSize? pageSize, LabelaryPageOrientation? pageOrientation, LabelaryPageLayout? pageLayout, LabelaryPageAlign? pageAlign, LabelaryPageAlign? pageVerticalAlign, LabelaryLabelBorder? labelBorder, LabelaryPrintQuality? printQuality, bool enableLinting = false, Client? client}) → Future< LabelaryResponse> - A convenience method to render a label directly from a ZplGenerator instance.
-
renderFromGeneratorSimple(
ZplGenerator generator, {LabelaryOutputFormat outputFormat = LabelaryOutputFormat.png, int index = 0, Client? client}) → Future< Uint8List> - Convenience method to render from generator and return only the image data (backward compatibility).
-
renderZpl(
String zpl, {LabelaryPrintDensity density = LabelaryPrintDensity.d8, double width = 4, double height = 6, LabelaryOutputFormat outputFormat = LabelaryOutputFormat.png, int? index = 0, LabelaryRotation? rotation, LabelaryPageSize? pageSize, LabelaryPageOrientation? pageOrientation, LabelaryPageLayout? pageLayout, LabelaryPageAlign? pageAlign, LabelaryPageAlign? pageVerticalAlign, LabelaryLabelBorder? labelBorder, LabelaryPrintQuality? printQuality, bool enableLinting = false, Client? client}) → Future< LabelaryResponse> - Renders a ZPL script string into an image or other format using the Labelary API.
-
renderZplFile(
Uint8List zplFileData, String filename, {LabelaryPrintDensity density = LabelaryPrintDensity.d8, double width = 4, double height = 6, LabelaryOutputFormat outputFormat = LabelaryOutputFormat.png, int? index = 0, LabelaryRotation? rotation, LabelaryPageSize? pageSize, LabelaryPageOrientation? pageOrientation, LabelaryPageLayout? pageLayout, LabelaryPageAlign? pageAlign, LabelaryPageAlign? pageVerticalAlign, LabelaryLabelBorder? labelBorder, LabelaryPrintQuality? printQuality, bool enableLinting = false, Client? client}) → Future< LabelaryResponse> - Renders a ZPL file into an image or other format using the Labelary API.
-
renderZplFileSimple(
Uint8List zplFileData, String filename, {LabelaryPrintDensity density = LabelaryPrintDensity.d8, double width = 4, double height = 6, LabelaryOutputFormat outputFormat = LabelaryOutputFormat.png, int index = 0, Client? client}) → Future< Uint8List> - Convenience method to render ZPL file and return only the image data (backward compatibility).
-
renderZplSimple(
String zpl, {LabelaryPrintDensity density = LabelaryPrintDensity.d8, double width = 4, double height = 6, LabelaryOutputFormat outputFormat = LabelaryOutputFormat.png, int index = 0, Client? client}) → Future< Uint8List> - Convenience method to render ZPL string and return only the image data (backward compatibility).