replaceTextName method

Future<bool> replaceTextName(
  1. String data,
  2. String objectName
)

Replaces the text in an object of a P-touch Template, specified by the object's name.

Implementation

Future<bool> replaceTextName(String data, String objectName) async {

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

  final bool success = await _channel.invokeMethod("replaceTextName", params);

  return success;
}