Commit bb37fa2d authored by Andrey's avatar Andrey

missing file

parent 6b00dea5
...@@ -257,24 +257,22 @@ class Ticket { ...@@ -257,24 +257,22 @@ class Ticket {
/// Beeps [n] times /// Beeps [n] times
/// ///
/// Beep [duration] could be between 50 and 450 ms. /// Beep [duration] could be between 50 and 450 ms.
// void beep({int n = 3, PosBeepDuration duration = PosBeepDuration.beep450ms}) { void beep({int n = 3, PosBeepDuration duration = PosBeepDuration.beep450ms}) {
// if (n <= 0) { if (n <= 0) {
// return; return;
// } }
// int beepCount = n; int beepCount = n;
// if (beepCount > 9) { if (beepCount > 9) {
// beepCount = 9; beepCount = 9;
// } }
// _socket.add( bytes += Uint8List.fromList(
// Uint8List.fromList( List.from(cBeep.codeUnits)..addAll([beepCount, duration.value]),
// List.from(cBeep.codeUnits)..addAll([beepCount, duration.value]), );
// ),
// );
// beep(n: n - 9, duration: duration); beep(n: n - 9, duration: duration);
// } }
/// Clear the buffer and reset text styles /// Clear the buffer and reset text styles
void reset() { void reset() {
...@@ -303,25 +301,23 @@ class Ticket { ...@@ -303,25 +301,23 @@ class Ticket {
} }
/// Reverse feed for [n] lines (if supported by the priner) /// Reverse feed for [n] lines (if supported by the priner)
// void reverseFeed(int n) { void reverseFeed(int n) {
// _socket.add( bytes += Uint8List.fromList(
// Uint8List.fromList( List.from(cReverseFeedN.codeUnits)..add(n),
// List.from(cReverseFeedN.codeUnits)..add(n), );
// ), }
// );
// }
/// Cut the paper /// Cut the paper
/// ///
/// [mode] is used to define the full or partial cut (if supported by the priner) /// [mode] is used to define the full or partial cut (if supported by the priner)
// void cut({PosCutMode mode = PosCutMode.full}) { void cut({PosCutMode mode = PosCutMode.full}) {
// _socket.write('\n\n\n\n\n'); emptyLines(5);
// if (mode == PosCutMode.partial) { if (mode == PosCutMode.partial) {
// _socket.write(cCutPart); bytes += cCutPart.codeUnits;
// } else { } else {
// _socket.write(cCutFull); bytes += cCutFull.codeUnits;
// } }
// } }
/// Generate multiple bytes for a number: In lower and higher parts, or more parts as needed. /// Generate multiple bytes for a number: In lower and higher parts, or more parts as needed.
/// ///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment