PosComponent class abstract

The base class for generating ESC/POS commands for creating components such as text, image, barcode, etc that will be printed on an ESC/POS printer.

Implementers

Constructors

PosComponent(List<int> bytes, {bool isKanji})
Creates ESC/POS commands from raw bytes
const
factory
PosComponent.delegate(PosDelegate delegate)
Creates ESC/POS commands from PosComponents
const
factory

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

generate(Generator generator) List<int>
Generates ESC/POS commands based on generator's CapabilityProfile, PaperSize, PosStyles, etc.
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