msg property
String
get
msg
Implementation
String get msg {
if (value == PosPrintResult.success.value) {
return 'Success';
} else if (value == PosPrintResult.timeout.value) {
return 'Error. Printer connection timeout';
} else if (value == PosPrintResult.printerNotSelected.value) {
return 'Error. Printer not selected';
} else if (value == PosPrintResult.ticketEmpty.value) {
return 'Error. Ticket is empty';
} else if (value == PosPrintResult.printInProgress.value) {
return 'Error. Another print in progress';
} else if (value == PosPrintResult.scanInProgress.value) {
return 'Error. Printer scanning in progress';
} else {
return 'Unknown error';
}
}