getLabelInfo method

Future<LabelInfo> getLabelInfo()

Retrieves the label information from the printer. Available for QL and PT series only.

Implementation

Future<LabelInfo> getLabelInfo() async {

  var params = {
    "printerId": mPrinterId,
    "printInfo": mPrinterInfo.toMap(),
  };

  final Map resultMap = await _channel.invokeMethod("getLabelInfo", params);

  print ("Label Info: $resultMap");

  final LabelInfo outLabel = LabelInfo.fromMap(resultMap);
  return outLabel;
}