0 purchases
dart escpos printer
init #
void main(){
initDartEscposLibaraySo();
}
copied to clipboard
Api #
///连接到打印机
Future<Printer> connectToPrinter(
{required int vendorId, required int productId}) =>
RustLib.instance.api.crateApiPrinterConnectToPrinter(
vendorId: vendorId, productId: productId);
copied to clipboard
///打印简单的文本
Future<bool> printerSimpleText(
{required Printer printer, required String text}) =>
RustLib.instance.api
.crateApiPrinterPrinterSimpleText(printer: printer, text: text);
copied to clipboard
///打印原始数据
Future<bool> printerRawData(
{required Printer printer, required List<int> rawData}) =>
RustLib.instance.api
.crateApiPrinterPrinterRawData(printer: printer, rawData: rawData);
copied to clipboard
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.