Generator class abstract
Constructors
- Generator(PaperSize paperSize, CapabilityProfile profile, {int spaceBetweenRows})
-
Creates a Generator
factory
Properties
- codeTable → String?
-
Global styles
no setter
- font → PosFontType?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxCharsPerLine → int?
-
no setter
- paperSize → PaperSize
-
Ticket config
no setter
- profile → CapabilityProfile
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spaceBetweenRows → int
-
no setter
- styles → PosStyles
-
Current styles
no setter
Methods
-
beep(
{int n = 3, PosBeepDuration duration = PosBeepDuration.beep450ms}) → List< int> -
Beeps
n
times -
getStyles(
PosStyles styles, {bool isKanji = false}) → List< int> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openCashDrawer(
{PosDrawer pin = PosDrawer.pin2}) → List< int> - Open cash drawer
-
printCodeTable(
{String? codeTable}) → List< int> - Print selected code table.
-
reset(
) → List< int> - Clear the buffer and reset text styles
-
setGlobalCodeTable(
String? codeTable) → List< int> - Set global code table which will be used instead of the default printer's code table (even after resetting)
-
setGlobalFont(
PosFontType? font, {int? maxCharsPerLine}) → List< int> - Set global font which will be used instead of the default printer's font (even after resetting)
-
setGlobalStyles(
PosStyles styles, {bool isKanji = false}) → List< int> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited