replaceTextIndex method

Future<bool> replaceTextIndex(
  1. String data,
  2. int index
)

Replaces the text in an object of a P-touch Template, specified by its object number.

Implementation

Future<bool> replaceTextIndex(String data, int index) async {

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

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

  return success;
}